fixed a bug in the KeyBinding Handler