private void setupKeys() {
        inputManager.addMapping("Lefts", new KeyTrigger(KeyInput.KEY_H));
        inputManager.addMapping("Rights", new KeyTrigger(KeyInput.KEY_K));
        inputManager.addMapping("Space", new KeyTrigger(KeyInput.KEY_SPACE));
        inputManager.addListener(this, "Lefts", "Rights", "Space");
    }
Tests attaching ghost nodes to physics nodes via the scene graph
@author normenhansen
jme3-examples/src/main/java/jme3test/bullet/TestAttachGhostObject.java