Fast switching mouse + keyboard between macs

I don’t think there’s a way to prevent the Mac from auto-connecting except to turn off Bluetooth temporarily.