@Override
    public void update() {
        synchronized (eventQueue){
            // flush events to listener
            for (int i = 0; i < eventQueue.size(); i++){
                listener.onKeyEvent(eventQueue.get(i));
            }
            eventQueue.clear();
        }
    }
<code>AwtKeyInput</code>

@author Joshua Slack
@author Kirill Vainer
@version $Revision: 4133 $
jme3-desktop/src/main/java/com/jme3/input/awt/AwtKeyInput.java