private void initKeys() {
    inputManager.addMapping("Shoot", new MouseButtonTrigger(MouseInput.BUTTON_LEFT));
    inputManager.addListener(actionListener, "Shoot");
  }
Declaring "Shoot" action, mapping it to a trigger (mouse left click).
jme3-examples/src/main/java/jme3test/helloworld/HelloAudio.java