This code triggers for all events where `event.key` *contains* “k” or “K”, e.g. `event.key === "Backspace"`. This means that pressing <kbd>⌘</kbd><kbd>⌫</kbd> toggles the search popup instead of deleting a word as it should. https://github.com/pydata/pydata-sphinx-theme/blob/2057612a6f2fb5f044f0ea4a12912fd67f6c9cae/src/pydata_sphinx_theme/assets/scripts/pydata-sphinx-theme.js#L248-L250 The regex should be `/^k$/i` instead, as done in https://github.com/pydata/pydata-sphinx-theme/pull/1646