Can I remap keyboard input in OpenOffice to perform things like "quit?" [closed]

view story

http://stackoverflow.com – I'm creating an exhibit for a museum in which I need to launch a PowerPoint presentation from the app and control the presentation with a presenter remote which acts as a keyboard. I've got several pieces of this puzzle solved, but I need to be able to exit the presentation from the remote. Does anyone know how I could do this? The presenter (link) is a standard USB keyboard and has 4 buttons (page up, page down, f5, and 'v'). I'm using ubuntu linux and can run any window manager I need to (currently Awesome WM). The operator should be able to cycle back and forth through the presentation (HowTos)