@Override
  public void simpleInitApp() {
      Box b = new Box(1, 1, 1);
    player = new Geometry("Player", b);
    Material mat = new Material(assetManager, "Common/MatDefs/Misc/Unshaded.j3md");
    mat.setColor("Color", ColorRGBA.Blue);
    player.setMaterial(mat);
    rootNode.attachChild(player);
    initKeys(); // load my custom keybinding
  }
Sample 5 - how to map keys and mouse buttons to actions
jme3-examples/src/main/java/jme3test/helloworld/HelloInput.java