Before you spend for a KVM (and cables), if both PCs are (or can be) connected to a LAN,
you might try the free (donationware) Synergy software which allows sharing a single
monitor and keyboard and mouse between computers (PCs, Macs, Linux) over a network.
http://synergy-foss.org/