protected synchronized void exitMoveMode() {
    LOGGER.warning("Leave EZMove mode");
    moveMode = false;

    selected.unregister();

    InputManager inputManager = InputManager.inputManager();
    inputManager.removeGlobalEventListener(moveListener);

    // enable events to our avatar
    inputManager.addKeyMouseFocus(inputManager.getGlobalFocusEntity());
  }
  protected synchronized void enterMoveMode() {
    LOGGER.warning("Enter EZMove mode");
    moveMode = true;

    selected.register();

    InputManager inputManager = InputManager.inputManager();
    inputManager.addGlobalEventListener(moveListener);

    // disable events to our avatar
    inputManager.removeKeyMouseFocus(inputManager.getGlobalFocusEntity());
  }
 public void unregister() {
   InputManager.inputManager().removeGlobalEventListener(enableListener);
 }
 public void register() {
   InputManager.inputManager().addGlobalEventListener(enableListener);
 }