keying off a particular key

I'm creating a multimedia computer to work much like a dvd player. In fact, I have the buttons (play/pause, stop, eject, next, prev). Everything works, but it would work better if users would always hit stop before hitting eject.

Currently I have an app mapped to the eject button. This app opens or closes the disc tray.
The problem is that if we're playing a dvd and someone hits the ject button, the Media Player is still in fullscreen mode. There's no way to shut it down unless I hook up a keyboard to the machine to shut down the app.
I'd sure like to fix it so that when someone hits the eject button, that not only will my little tray program toggle the tray, but the media player would also get the command to shut down.

Any ideas on how to do this?
I've been using MediaPlayer Classic, just because it allows you to specify shortcut keys, which is how I've mapped my buttons to the functions for MediaPlayer Classic.
[990 byte] By [les_stockton] at [2007-11-18 20:40:49]