For reference:
https://github.com/mozilla/pdf.js/issues/15571#issuecomment-1278141781
if (!this.allKeys.has(event.key)) {
      return;
    }
    const callback = this.callbacks.get(this.#serialize(event));
    if (!callback) {
      return;
    }
    callback.bind(self)();
    event.stopPropagation();
    event.preventDefault();
  }
}
class ColorManager {