This script will allow the use of keyboard multimedia keys to control playback when running Amarok under Gnome 2.22 and above. The keyboard shortcuts you define system wide will then also work in Amarok 2 as if they were "Global shortcuts". This includes most media buttons found on laptops and keyboards.
Based on my version for Amarok 1.4 http://www.kde-apps.org/content/show.php?content=60910 this is a bit of a hack so please let me know how it works out for you...
Currently supported operations are:
Simply run the script, no configuration of the script itself is required. The desired keyboard shortcuts can be configured by selecting "System-->Prefrences-->Keyboard Shortcuts" from the Gnome pannel.