Removed unnecessary parameters from KeyHandler