You can use two Windows machines at once with a single keyboard and mouse without any special hardware. I had an extra laptop lying around that now connects with the same keyboard and mouse as my PC.
If you see a Blue Screen when you connect a keyboard or a mouse to your Windows 11/10 computer, this post will help you fix the issue. Multiple causes can trigger this problem, such as corrupt system ...