Question: how to connect two computers to one keyboard and mouse?
Answer: A KVM Switch: The most well-known and stable solution is a keyboard-video-mouse (KVM) Switch. A KVM switch allows you to push a button or input a keyboard command to switch between controlling and viewing the two (or more) computers.