Multimedia keys are ignored while focus is on Calc from LibreOffice.
Media keys work in foobar when it's focused, also while other programs are focused.
I use Windows 7 Home Premium SP 1. My Foobar version is 1.3.2.
Media keys are from Lenovo laptop keyboard (g550 model 20023) with standard keyboard driver PS/2, version 6.1.7601.17514.
Multimedia keys work perfectly for Winamp, also while Calc is focused. With both Foobar2000 and Winamp running only Winamp reacts to multimedia keys. This problem is considered to be a LibreOffice bug ( https://bugs.freedesktop.org/show_bug.cgi?id=32664 ) though Winamp found workaround.
I followed instruction from http://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Preferences:General:Keyboard_Shortcuts#Multimedia_keys and http://www.hydrogenaudio.org/forums/index.php?showtopic=50067 what fixed some other issues (Winamp seems to have higher priority in receiving keypresses, and it blocked foobar2000 from receiving information that multimedia key was pressed).