I have found a temporary fix: Using the Task Manager, kill the background process named "Windows Input Experience". The problem will come back at the next reboot.
Windows 11 Pro. Version 10.0.22000 Build 22000
It would be nice to have a fix to this annoying bug.