Hi, just off the top of my head, I would guess the remote uses the left and right arrows to go next and back, or some variation. The remotes are mainly used for Powerpoint presentations.

So that being said, all you would need is a key listener and then go back and forward according to which button is pressed.