Heh, that's kinda cool. My guess is that those buttons generate a command-left-arrow and command-right-arrow keystrokes, which are the commands for going forward and back in most browser, as well as for changing tracks in iTunes.
You could test this by clicking the buttons in a text editor. Those commands should move the insertion point to the beginning and end of the current line.