Added a simple system to create events for key presses