@Override
        public void onAction(String name, boolean value, float tpf) {
            if (!value) {
                return;
            }

            if (name.equals(INPUT_MAPPING_EXIT)) {
                stop();
            } else if (name.equals(INPUT_MAPPING_HIDE_STATS)) {
                if (stateManager.getState(StatsAppState.class) != null) {
                    stateManager.getState(StatsAppState.class).toggleStats();
                }
            }
        }
<code>SimpleApplication</code> is the base class for all jME3 Applications.
<code>SimpleApplication</code> will display a statistics view
using the {@link com.jme3.app.StatsAppState} AppState. It will display
the current frames-per-second value on-screen in addition to the statistics.
Several keys have special functionality in <code>SimpleApplication</code>:<br>

 Esc - Close the application.<br>
 C - Display the camera position and rotation in the console.<br>
 M - Display memory usage in the console.<br>

A {@link com.jme3.app.FlyCamAppState} is by default attached as well and can
be removed by calling <code>stateManager.detach(stateManager.getState(FlyCamAppState.class));</code>
jme3-core/src/main/java/com/jme3/app/SimpleApplication.java