Share desktop monitor/keyboard/mouse with laptop
Synergy is free software that will allow you to share the keyboard and mouse between computers as long as they are on the same network.
Yes, a KVM will work for what you need. I would suggest one with USB interface so you can "plug-n-play".