Take a look at Synergy.

Synergy is Free and Open Source Software that lets you easily share your mouse and keyboard between multiple computers, where each computer has its own display. No special hardware is required, all you need is a local area network. Synergy is supported on Windows, Mac OS X and Linux. Redirecting the mouse and keyboard is as simple as moving the mouse off the edge of your screen.

Synergy


Synergy might be exactly what you're looking for.

Synergy lets you easily share a single mouse and keyboard between multiple computers with different operating systems, each with its own display, without special hardware.

not only can you share mouse and keyboard but also the clipboard (i.e. to copy/paste a youtube URL).

or you can use ZoneScreen to extend your desktop workspace using displays of network connected computers.

alt text

both programs are freeware.