Code example for KeyEvent

Methods: getKeyCode, isDown