I kinda have this going now, what I do is plug in the keyboard to whichever one I'm using, use a wireless mouse which I have paired with two receivers and one hooked up to the monitor via hdmi and the other dvi.
it kinda works but is annoying to swap the keyboard and sometimes the mouse is glitchy because of the closeness of the receivers when they are both on.
Laugh, and the world laughs with you. Weep, and you weep alone. The armory of god is guarding me but all you can see is holographic artistry.