public void removeListener(InputListener listener) {
        for (Mapping mapping : mappings.values()) {
            mapping.listeners.remove(listener);
        }
    }
Removes a listener from receiving events.

<p>This will unregister the listener from any mappings that it
was previously registered with via
{@link InputManager#addListener(com.jme3.input.controls.InputListener, java.lang.String[]) }.

@param listener The listener to unregister.

@see InputManager#addListener(com.jme3.input.controls.InputListener, java.lang.String[])
jme3-core/src/main/java/com/jme3/input/InputManager.java