Code example for KeyEvent

Methods: getActiongetKeyCode