Renamed key event.name to event.action to match mouse events
Minor edits