public final void registerWithInput() {

        String[] inputs = {CameraInput.CHASECAM_TOGGLEROTATE,
            CameraInput.CHASECAM_DOWN,
            CameraInput.CHASECAM_UP,
            CameraInput.CHASECAM_MOVELEFT,
            CameraInput.CHASECAM_MOVERIGHT,
            CameraInput.CHASECAM_ZOOMIN,
            CameraInput.CHASECAM_ZOOMOUT};
        initVerticalAxisInputs();
        initZoomInput();
        initHorizontalAxisInput();
        initToggleRotateInput();

        inputManager.addListener(this, inputs);
        inputManager.setCursorVisible(dragToRotate);
    }
Registers inputs with the input manager
jme3-core/src/main/java/com/jme3/app/ChaseCameraAppState.java