Default keyboard handler fix

fix for setKeyboardHandler bug introduced in 8634f26