class GenericHotkeyManager extends HotkeyManager {

  HotkeyController controller = null;

  @Override
  public boolean _addHotkey(int keyCode, int modifiers, HotkeyListener callback) {
    if (controller == null) {
      controller = HotkeyController.get();
    }
    return !controller.addHotkey(callback, keyCode, modifiers).isEmpty();
  }

  @Override
  public boolean _removeHotkey(int keyCode, int modifiers) {<FILL_FUNCTION_BODY>}

  @Override
  public int _removeAll(Map<String, Integer[]> hotkeys, boolean isTerminating) {
    if (controller == null) {
      return 0;
    }
    controller.setTerminating(isTerminating);
    for (Integer[] keyMods : hotkeys.values()) {
      if (!controller.removeHotkey(keyMods[0], keyMods[1])) {
        return -1;
      }
    }
    return hotkeys.size();
  }

  @Override
  public void cleanUp() {
    if (controller != null) {
      controller.stop();
    }
  }
}

    if (controller == null) {
      return false;
    }
    return controller.removeHotkey(keyCode, modifiers);
  
<methods>public non-sealed void <init>() ,public abstract boolean _addHotkey(int, int, org.sikuli.basics.HotkeyListener) ,public abstract int _removeAll(Map<java.lang.String,java.lang.Integer[]>, boolean) ,public abstract boolean _removeHotkey(int, int) ,public boolean addHotkey(java.lang.String, org.sikuli.basics.HotkeyListener) ,public boolean addHotkey(char, int, org.sikuli.basics.HotkeyListener) ,public boolean addHotkey(java.lang.String, int, org.sikuli.basics.HotkeyListener) ,public abstract void cleanUp() ,public java.lang.String getHotKeyText(java.lang.String) ,public static org.sikuli.basics.HotkeyManager getInstance() ,public boolean removeHotkey(java.lang.String) ,public boolean removeHotkey(char, int) ,public boolean removeHotkey(java.lang.String, int) ,public static void reset(boolean) <variables>private static final java.lang.String HotkeyTypeAbort,private static int HotkeyTypeAbortKey,private static int HotkeyTypeAbortMod,private static final java.lang.String HotkeyTypeCapture,private static int HotkeyTypeCaptureKey,private static int HotkeyTypeCaptureMod,private static org.sikuli.basics.HotkeyManager _instance,private static Map<java.lang.String,java.lang.Integer[]> hotkeys,private static Map<java.lang.String,java.lang.Integer[]> hotkeysGlobal