public static void main(String[] args) {
    HelloInput app = new HelloInput();
    app.start();
  }
Sample 5 - how to map keys and mouse buttons to actions
jme3-examples/src/main/java/jme3test/helloworld/HelloInput.java