Added Keyboard events to the event loop