Code example for KeyEvent

Methods: getActiongetEventTimegetKeyCode