As fixed camera

camera in the project as set below?

I can configure it.

I want to disable the keys "W", "S", "A", "D".



import com.jme.app.SimpleGame;

import com.jme.scene.shape.Arrow;

public class SimpleGameSample extends SimpleGame {

    Arrow a;

    protected void simpleInitGame() {

        a = new Arrow("Arrow",10,5);

        rootNode.attachChild(a);

    }



    @Override

    protected void simpleUpdate() {

    }



    public static void main(String args []) {

        SimpleGameSample game = new SimpleGameSample();

        game.start();

    } 

}

input = new InputHandler();



This code will set your input handler to a default input handler, therefore removing the key bindings for all keys. Another way to do this is:

KeyBindingManager.getKeyBindingManager().removeAll();



or you could also look through the SimpleGame source to figure out what they named the commands for W A S and D (I think it's something pretty simple, like forward, back, left, right) and use:

KeyBindingManager.getKeyBindingManager().remove("forward"); //etc.

SimpleGame's inputhandler is a FirstPersonHandler which has a MouseLookHandler and KeyboardLookHandler attached.



To remove the Keyboard handler you can do the following:


    FirstPersonHandler fph = (FirstPersonHandler)input;
    fph.removeFromAttachedHandlers(fph.getKeyboardLookHandler());