I use Microsoft Garage Mouse Without Borders[1] to control my old and new PC with one mouse/keyboard. Works over WiFi flawlessly for me. All you have to do is move the mouse cursor towards the monitor with the other computer(s) and it automatically switches.
[1]: https://www.microsoft.com/en-us/download/details.aspx?id=354...