Yes and yes, I had this with Foobar too. You can fix it by setting them as keyboard shortcuts explicitly in foobar:
File > Preferences > General > Keyboard Shortcuts.
Add New, click in the 'key' box at the bottom, press the appropriate media key and assign it to the appropriate job. Then make sure 'Global Hotkey' is checked.