Code example for KeyEvent

Methods: getActiongetRepeatCount