map-function in keymap%

Maps an input state to the name of an event handler.