Re-enable Mac media keys originally disabled via terminal

to re-enable media keys you can use:

launchctl load -w /System/Library/LaunchAgents/com.apple.rcd.plist

explained in this article