Code example for KeyEvent

Methods: getActiongetKeyCodegetRepeatCountisCanceled