iTunes in Yosemite does not respond to media keys
Do you happen to have Spotify or another media application open at the same time as iTunes? They'll hijack your media keys, passing the the controls to that application instead of iTunes.

Or perhaps Chrome is hijacking your media key keystrokes. You can get more information on that here: http://www.omgchrome.com/chrome-google-music-media-keys/