I'm pretty sure they have switch boxes to do this. You turn a knob on the switch box, say to computer "B", and suddently your monitor is showing computer "B" and your keyboard/mouse are controlling computer "B".
Better yet. Just use Windows Terminal Services.