This question already has an answer here:
- Can't pair apple wireless keyboard 4 answers
How can I manually setup a passkey as "000000" (containing only zeros) to pair Bluetooth keyboard to iMac rather than the random keys generated by Mac. I'm currently using Mavericks & struggling to reconnect the keyboard as i'm unable to give the pass key other than 'zeros'. In the link : Can't pair apple wireless keyboard, SingleShot has mentioned of a way to manually set the passkey to 'zeros'.