close #65 Refactor key event listener.