WIP: key events.
Implemented key events.