Code example for KeyEvent

Methods: getActiongetDownTimegetEventTimegetKeyCode