Closes #22656 Part of #29144, this PR completely rewrites the key handling logic on Windows, making it much more consistent with how things work on macOS. However, one remaining issue is that on Windows, we should be using `Ctrl+Shift+4` instead of `Ctrl+$`. That part is expected to be addressed in #29144. Release Notes: - N/A