If anyone is interested, Logitech makes (or used to make) a line of keyboards and mice (MX series I think) that have a "QuickSwitch or Easy-Switch" on them allowing you to use them on up to three PC's. You need to get a receiver, which is just a little USB port plug for each machine. If I recall correctly think they come with one receiver. I haven't used them for gaming, but I do use an MX setup for my editing machines and the server with which they are linked. I can switch on the fly between two PC's and a server, no prob.
Those won't help if you use separate monitors. I use an HDMI switch for the monitors though, as I use a different monitor for the storage server.
Here's a video about one of the setups Logitech has available.
https://www.youtube.com/watch?v=4UzF7Hq1IeU