Removed testing code
Implemented keyboard input detection with KeyboardListener.java