@Override
        public void onAction(String name, boolean pressed, float tpf) {
            if (name.equals("load") && !pressed) {
                loadTerrain();
            }
        }
Create the save and load actions and add them to the input listener
jme3-examples/src/main/java/jme3test/terrain/TerrainTestReadWrite.java