public void set(Type type, float x, float y, float deltax, float deltay) {
        this.type = type;
        this.posX = x;
        this.posY = y;
        this.deltaX = deltax;
        this.deltaY = deltay;
        pointerId = 0;
        pressure = 0;
        keyCode = 0;
        scaleFactor = 0;
        scaleSpan = 0;
        deltaScaleSpan = 0;
        scaleSpanInProgress = false;
        characters = "";
        consumed = false;
    }
Virtual keyboard or hardware key event up, fields: keyCode, characters
jme3-core/src/main/java/com/jme3/input/event/TouchEvent.java