Actually, it looks like this may work, as notenoted here Share your Magic Mouse between 2 Macs. This should be able to be extended to where both the keyboard and the mouse are Bluetooth and replacing the KVM with a USB switch.
For the setup we used the following hardware:
- 1 mac mini (running 24/7 as a home server)
- 1 Mac Pro (it’s a hackintosh inside a Mac Pro case)
- 1 Apple USB Keyboard and 1 dual-link DVI Monitor
- 1 Apple Magic Mouse (Bluetooth)
- 1 Belkin Flip KVM Switch (DVI-D 2-Port)
- 1 small Bluetooth 2.0 USB dongle