MV2 is not yet supported by Chrome, so the problem remains:
Background scripts do not support "document", and content scripts do not support "onCommand".
I have a bookmarklet/JS to switch the current page to dark mode,but I would like to use it only on a hotkey press. None of the solutions work using MV3.