So I was trying to make Spotify my default music player instead of iTunes and put
$ launchctl unload -w /Library/LaunchAgents/com.apple.rcd.patched.plist on terminal
Now I cannot use my media button (F7,F8,F9) and have swapped to the space bar and the arrow keys
The same has happened to my Spotify so I can't play music automatically anymore and have to click onto the actual music app
I have tried putting $ launchctl load -w /System/Library/LaunchAgents/com.apple.rcd.plist
to disable it, but it has not worked.
Can anybody help me to get my media buttons to work again?

Chowhound
Comic Vine
GameFAQs
GameSpot
Giant Bomb
TechRepublic