@Override public void keyReleased(KeyEvent e){
synchronized (keyLock) {
    keysDown.remove(e.getKeyCode());
  }
}

@ Override public void keyReleased ( KeyEvent e ) { synchronized ( keyLock ) { keysDown . remove ( e . getKeyCode ( ) ) ; } }
this method cannot be called directly .
