trying to add handlers for keypress