Controlling a Flash presentation via remote

I have an instructor who would like to be able to advance his Flash presentation with the infrared remote control that came with his Mac laptop. He can do the Key Listener stuff himself, but does anyone know how to grab the input from the remote and map it to keystrokes?