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.
You can share a keyboard and mouse across multiple Windows and macOS computers, if you know the right tools to use.
Use Dual Monitor Tools to keep your mouse on one monitor Reviewed by Ryan Perian This article explains how to use Dual Monitor Tools to lock the mouse cursor to a single screen on a multi-monitor ...