KeyHandler class added.