@Override
    public void onAction(String name, boolean keyPressed, float tpf) {
        if (name.equals("toggleCamera") && keyPressed) {
            // Toggle chase camera
            chaseCam.setEnabled(!chaseCam.isEnabled());
        }
    }
A test for issue https://github.com/jMonkeyEngine/jmonkeyengine/pull/1692.
We are testing to see if disabling then re-enabling the chase camera keeps the correct flags
set so that we can still rotate without dragging
jme3-examples/src/main/java/jme3test/input/TestIssue1692.java