Function keys are usually dependent on having the proper driver installed for the keyboard.
The default drivers from Windows Update sometimes work fine, with all the function keys working. Other times, it will only leave some of the features working (like in your case, only the volume feature).
I would suggest downloading the manufacturer's driver. Many times they have software to go with it for customization of hotkeys.
As for individual software programs, some don't support hotkey buttons at all. This can vary and completely depends on the developer, though many nowadays support multimedia keyboards.