Pass key event to the handler in case you need to check what key was pressed at the last minute.