Re-pair Apple Keyboard and Apple Mouse
If you want to reuse a mac keyboard or mouse for another mac, use following steps
Keyboard
Connect keyboard via USB lightening cable, it will automatically pair with new mac.
Mouse
Connect mouse via USB lightening cable, and click on bluetooth icon, then click on connect.