Synergy is a cool app for sharing mouse and keyboard across multiple computers. I now have a Raspberry Pi hooked up to a screen next to my Mac, and when the mouse reaches the edge of the Mac screen, it appears on the Pi, and the keyboard also switches to the Pi. Moving back, the reverse happens. It can even work with multiple computers.