How can I pair my Apple keyboard and mouse to multiple Macbooks Pro?
You can pair several but they tend to auto pair with the first beacon and not the computer you want. 

Usually you can force a pair from the current machine but I’d recommend getting a device that has a button to have the keyboard choose which Bluetooth module to pair or get a KVM.