Fixed keyboard input

When I made a Key listener, keyboard input wasn't registering. This fixed it.