addAction( new KeyRotateRightAction( cam, rotateSpeed ), "turnRight", true ); addAction( new KeyRotateLeftAction( cam, rotateSpeed ), "turnLeft", true );
right = new KeyRotateRightAction( cam, rotateSpeed ); right.setLockAxis(new Vector3f(cam.getUp())); addAction(right, "turnRight", true ); left = new KeyRotateLeftAction( cam, rotateSpeed ); left.setLockAxis(new Vector3f(cam.getUp())); addAction( left, "turnLeft", true );
    public KeyboardLookHandler( Camera cam, float moveSpeed, float rotateSpeed ) {        KeyBindingManager keyboard = KeyBindingManager.getKeyBindingManager();        keyboard.set( "forward", KeyInput.KEY_W );        keyboard.set( "backward", KeyInput.KEY_S );        keyboard.set( "strafeLeft", KeyInput.KEY_A );        keyboard.set( "strafeRight", KeyInput.KEY_D );        keyboard.set( "lookUp", KeyInput.KEY_UP );        keyboard.set( "lookDown", KeyInput.KEY_DOWN );        keyboard.set( "turnRight", KeyInput.KEY_RIGHT );        keyboard.set( "turnLeft", KeyInput.KEY_LEFT );        addAction( new KeyForwardAction( cam, moveSpeed ), "forward", true );        addAction( new KeyBackwardAction( cam, moveSpeed ), "backward", true );        addAction( new KeyStrafeLeftAction( cam, moveSpeed ), "strafeLeft", true );        addAction( new KeyStrafeRightAction( cam, moveSpeed ), "strafeRight", true );        addAction( new KeyLookUpAction( cam, rotateSpeed ), "lookUp", true );        addAction( new KeyLookDownAction( cam, rotateSpeed ), "lookDown", true );        addAction( new KeyRotateRightAction( cam, rotateSpeed ), "turnRight", true );        addAction( new KeyRotateLeftAction( cam, rotateSpeed ), "turnLeft", true );    }