// This must go in every class that has its own KeyMap and keyboard shortcuts virtual void handle_key( unsigned char key, unsigned char mods ) { if( keys.hasHandler( key, mods ) ) keys.getHandler( key, mods ) (); }