tightened up KeyBinding code and event handler registration