@Override public void handleKey(int virtualKeyCode,int transitionState,char keyChar){
  switchControlKeys(virtualKeyCode,transitionState);
  inputBuffer.add(new GlobalKeyEvent(this,virtualKeyCode,transitionState,keyChar,menuPressed,shiftPressed,controlPressed,extendedKey));
}

@ Override public void handleKey ( int virtualKeyCode , int transitionState , char keyChar ) { switchControlKeys ( virtualKeyCode , transitionState ) ; inputBuffer . add ( new GlobalKeyEvent ( this , virtualKeyCode , transitionState , keyChar , menuPressed , shiftPressed , controlPressed , extendedKey ) ) ; }
handle the input virtualkeycode and transitionstate , create event and add it to the inputbuffer
