private void initStateManager(){
        stateManager = new AppStateManager(this);

        // Always register a ResetStatsState to make sure
        // that the stats are cleared every frame
        stateManager.attach(new ResetStatsState());
    }
Initializes mouse and keyboard input. Also
initializes joystick input if joysticks are enabled in the
AppSettings.
jme3-vr/src/main/java/com/jme3/app/VRApplication.java