@Override
    public void keyReleased(KeyEvent evt) {
        int code = convertAwtKey(evt.getKeyCode());
        
        // Check if key was already released
        if (keyStateSet.get(code)) {
            keyStateSet.clear(code);
            KeyInputEvent keyEvent = new KeyInputEvent(code, evt.getKeyChar(), false, false);
            keyEvent.setTime(evt.getWhen());
            synchronized (eventQueue){
                eventQueue.add(keyEvent);
            }                        
        }
    }
<code>AwtKeyInput</code>

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