@Override
    public void initialize(AppStateManager stateManager, Application app) {
        super.initialize(stateManager, app);
        
        this.app = app;
        this.inputManager = app.getInputManager();
        
        if (app.getInputManager() != null) {
 
            inputManager.addMapping(INPUT_MAPPING_CAMERA_POS, new KeyTrigger(KeyInput.KEY_C));
            inputManager.addMapping(INPUT_MAPPING_MEMORY, new KeyTrigger(KeyInput.KEY_M));
            
            inputManager.addListener(keyListener, 
                                     INPUT_MAPPING_CAMERA_POS, 
                                     INPUT_MAPPING_MEMORY);                   
        }               
    }
Registers a few keys that will dump debug information
 to the console.

 @author    Paul Speed
jme3-core/src/main/java/com/jme3/app/DebugKeysAppState.java