@Override public void keyTyped(KeyEvent e){
synchronized (keyLock) {
    keysTyped.addFirst(e.getKeyChar());
  }
}

@ Override public void keyTyped ( KeyEvent e ) { synchronized ( keyLock ) { keysTyped . addFirst ( e . getKeyChar ( ) ) ; } }
this method cannot be called directly .
