public void keyPressed(final int keyCode){
  if (impl.getCurrentForm() == null) {
    return;
  }
  addSingleArgumentEvent(KEY_PRESSED,keyCode);
  lastInteractionWasKeypad=lastInteractionWasKeypad || (keyCode != MenuBar.leftSK && keyCode != MenuBar.clearSK && keyCode != MenuBar.backSK);
  keyRepeatCharged=(keyCode >= 0 || getGameAction(keyCode) > 0) || keyCode == impl.getClearKeyCode();
  longPressCharged=keyRepeatCharged;
  longKeyPressTime=System.currentTimeMillis();
  keyRepeatValue=keyCode;
  nextKeyRepeatEvent=System.currentTimeMillis() + keyRepeatInitialIntervalTime;
  previousKeyPressed=lastKeyPressed;
  lastKeyPressed=keyCode;
}

public void keyPressed ( final int keyCode ) { if ( impl . getCurrentForm ( ) == null ) { return ; } addSingleArgumentEvent ( KEY_PRESSED , keyCode ) ; lastInteractionWasKeypad = lastInteractionWasKeypad || ( keyCode != MenuBar . leftSK && keyCode != MenuBar . clearSK && keyCode != MenuBar . backSK ) ; keyRepeatCharged = ( keyCode >= 0 || getGameAction ( keyCode ) > 0 ) || keyCode == impl . getClearKeyCode ( ) ; longPressCharged = keyRepeatCharged ; longKeyPressTime = System . currentTimeMillis ( ) ; keyRepeatValue = keyCode ; nextKeyRepeatEvent = System . currentTimeMillis ( ) + keyRepeatInitialIntervalTime ; previousKeyPressed = lastKeyPressed ; lastKeyPressed = keyCode ; }
pushes a key press event with the given keycode into codename one
