Hi,
I did this some time ago for my MM keyboard. I used lineak
which brings support for many different keyboards.
You can choose from many predefined actions for keys or define own actions.
I got all of my audio control keys to work with amarok and kmix
The project:
http://lineak.sourceforge.net/
A install and configuration guide can be found under "lineakd README and instructions" link on this page.
exman