This script will allow the use of keyboard multimedia keys in Gnome 2.18 and above (eg. ubuntu feisty/gusty/hardy) to control playback in Amarok. This includes most multimedia buttons found on many laptops.
Currently supported operations are: Play/Pause, Pause, Stop, Next Track, Previous Track.
Simply run the script, no configuration of the script itself is required. The desired keyboard shortcuts can be configured by selecting System > Preferences > Keyboard Shortcuts from the Gnome pannel.
Homepage of Gnome Multimedia Keys.