Adding the event type to keyboard system.
Correct unit test for keyboard event.