private void initInputs() {
    inputManager.addMapping("shoot", 
            new MouseButtonTrigger(MouseInput.BUTTON_LEFT));
    inputManager.addListener(actionListener, "shoot");
  }
Add InputManager action: Left click triggers shooting.
jme3-examples/src/main/java/jme3test/helloworld/HelloPhysics.java