code: @Override
      public void setOverriding(boolean b)
      {
          if (this.keyHook != null)
          {
              this.keyHook.isDown = false;
              this.keyHook.justPressed = false;
              this.keyHook.isOverridingPresses = b;
          }
      }
docs: Switch this object "on" or "off".
  @param b true if this object is to start overriding the normal Minecraft handling.