AppleScript
Now we need to get the key press that will be coming from the Bluefruit EZ-Key over Bluetooth connected to an action on your computer. We'll do this through a combination of AppleScript and a program called QuickSilver to bind that script to a key press that works regardless of which program is in focus.Open AppleScript Editor and paste in the following line into a new document.
tell application "Spotify" to next track
Save this AppleScript to a location you can find again (your Documents folder is a good location). The file format should be "Script."
Quicksilver
Next, we go to QuickSilver. It's main use is a hyper fast application launcher that puts Spotlight to shame. We'll be using it in this case for it's "Triggers" feature.If you haven't already, install the latest QuickSilver on your Mac. When ready, you should have a new menu bar item at the top near the right. Click it and choose "Triggers.."
If it doesn't work, first check the hot key settings inside QuickSilver's Triggers window.