I too use a KVM switch for this.
If you'd like me to take the kick panel off my built-in desk (the switch lurks behind) and tell you which one, I will do so.
What I like about it is that to toggle between the two PCs (Keyboard, video, and mouse, as KVM implies) I simply hit Ctrl-Ctrl within a half second interval. No separate switches needed, because as written the device sits completely out of sight.
Another thing to consider in a KVM switch is that it emulates Keyboard and Mouse on PC boot even if that particular keyboard and mouse is deselected at the time. If not, when switching to it there's a chance that neither will work. Most KVM switches do this but I have seen a few cheapie-cheap ones that don't.