Made a KeyboardInput class which handles key presses