I have two iMACs and they sit about 4 feet apart.
iMAC1 says it can't find the keyboard...BUT when I type on iMAC1 it actually does type on iMAC2. What do I do to make the keyboard control and (and sometimes the mouse( work with the right iMAC.
Use BlueTooth preferences to pair each keyboard and mouse with the appropriate machine. Do this on both machines.
Bluetooth Quick Assist
Bluetooth- How to set up your Apple Wireless Mouse or Magic Trackpad
And, read the manuals that came with the computers, keyboards, and mice.
Retrieving data ...