Fixing bugs

- fixed bug on typo on the events
- added a reset for keydown