You can share a keyboard and mouse across multiple Windows and macOS computers, if you know the right tools to use.
If you're moving on from Windows, this compact powerhouse from Minix delivers more than enough performance with the right OS.