If we move mouse from Primary PC to secondary PC with (right)Shift Key press and release it works fine. But when we retrun to primarty to Secondary with (right)Shift key press and release it acts like still we have hold the Shift key (which mean it opens new window of Explorer,Firefox or any other program already opened and being in taskbar).. And if we press and release the left shift key one time it works fine.
OS Windows 11
For example:
Enable option "Unless shift key held down" in the settings-->control switch based on mouse movement..
Open a explorer window in Primary.. move your mouse from Primary to secondary with Right shift key pressed..
Come back again to Primary to secondary with Right shift key pressed and release the shift key..
Now click on the taskbar Explorer opened window.. It'll open another one explorer window instead of selecting the window..

BR