You are correct. KVM stands for Keyboard, Video and Mouse... you can use a 2-port KVM switch to connect 2 computers to a single Keyboard, Monitor and Mouse... or a 4-port KVM switch to connect 4 computers... etc...
Or if one PC is running Windows XP enable remote desktop. Then on the other PC download Terminal server client from microsoft. This is all free and easy way to connect.