@Override public void keyPressed(KeyEvent e){
synchronized (keyLock) {
    keysDown.add(e.getKeyCode());
  }
  for (  DrawListener listener : listeners)   listener.keyPressed(e.getKeyCode());
}

@ Override public void keyPressed ( KeyEvent e ) { synchronized ( keyLock ) { keysDown . add ( e . getKeyCode ( ) ) ; } for ( DrawListener listener : listeners ) listener . keyPressed ( e . getKeyCode ( ) ) ; }
this method cannot be called directly .
