@Override
    public String toString() {
        String str = "Key(CODE="+keyCode;
        if (keyChar != '\0')
            str = str + ", CHAR=" + keyChar;

        if (repeating) {
            return str + ", REPEATING)";
        } else if (pressed) {
            return str + ", PRESSED)";
        } else {
            return str + ", RELEASED)";
        }
    }
Returns true if this event is a key release, false if it was a key press.

@return true if this event is a key release, false if it was a key press.
jme3-core/src/main/java/com/jme3/input/event/KeyInputEvent.java