What about having special keymaps to send messages to kerneld?
Something general.. Then, you can configure your keymap to use (or
not) this feature, and you can configure kerneld to do <whatever> at
those messages. For example, you could have a shortcut for ejecting
cdrom, but you can use it for anything you want... The keyboard
driver has to know nothing about cdrom, it only sends a message to
kerneld <keyboard_request>, only kerneld knows if the request is
for eject cd, play cd, or anything.
I'll take a look at this..
Gonzalo