HKTunes (formerly iHK) is an open source program that allows you to control iTunes using global hotkeys. For example, you could change the track and music volume while playing a game. It has a tray menu and a GUI to let you select hotkeys.
hktunes - Project Hosting on Google Code
hktunes - Project Hosting on Google Code