adding keyhandler