Changed the Hard-Coded values to KeyEvent's. Added KeyEvent require to the top.