if (KeyBindingManager .getKeyBindingManager() .isValidCommand("tex1", false)) { selectedNode.setRenderState(ts); selectedNode.updateRenderState();
if (KeyBindingManager.getKeyBindingManager().isValidCommand("tex1", false)) { selectedNode.setRenderState(ts); selectedNode.updateRenderState(); }  if (KeyBindingManager.getKeyBindingManager().isValidCommand("tex2", false)) { selectedNode.setRenderState(ts2); rootNode.updateRenderState(); }  if (KeyBindingManager.getKeyBindingManager().isValidCommand("tex3", false)) { selectedNode.setRenderState(ts3); rootNode.updateRenderState(); }  if (KeyBindingManager.getKeyBindingManager().isValidCommand("notex", false)) { selectedNode.clearRenderState(RenderState.RS_TEXTURE); rootNode.updateRenderState(); }
  protected void simpleUpdate() {    input.update(timer.getTimePerFrame());    selectionBox.setLocalTranslation(selectedNode.getWorldTranslation());    selectionBox.setLocalRotation(selectedNode.getWorldRotation());    if (KeyBindingManager        .getKeyBindingManager()        .isValidCommand("tex1", false)) {      selectedNode.setRenderState(ts);      selectedNode.updateRenderState();    }    if (KeyBindingManager        .getKeyBindingManager()        .isValidCommand("tex2", false)) {      selectedNode.setRenderState(ts2);      rootNode.updateRenderState();    }    if (KeyBindingManager        .getKeyBindingManager()        .isValidCommand("tex3", false)) {      selectedNode.setRenderState(ts3);      rootNode.updateRenderState();    }    if (KeyBindingManager        .getKeyBindingManager()        .isValidCommand("notex", false)) {      selectedNode.clearRenderState(RenderState.RS_TEXTURE);      rootNode.updateRenderState();    }  }