minor fix in keyhandler