regarding: Plugable USB 2.0 Switch for One-Button Swapping of USB Device/Hub Between Two Computers
Thank you for posting your question.
There is no electrical reason why you couldn’t do this. The switch just connects the USB input to the selected output. However, you might find it cumbersome having to operate two switches, and there will be a lot of wires on your desk.
You will also need a hub to connect the keyboard and mouse to the input to the first switch.
I hope this answer helps. Feel free to post any other questions you have.