Refactor
Change editor behavior

To hook all keypress events.