- First make sure there aren't any other Bluetooth keyboards or input devices in the vicinity that may be interfering with yours.
- Then, reset the Mac's NVRAM:
NVRAM reset:
- Shut down your Mac.
- Locate the following keys on the keyboard: Command (⌘), Option, P, and R. You will need to hold these keys down simultaneously in step 4.
- Turn on the computer.
- Press and hold the Command-Option-P-R keys before the gray screen appears.
- Hold the keys down until the computer restarts and you hear the startup sound for the second time.
- Release the keys.
After resetting NVRAM or PRAM, you may need to reconfigure your settings for speaker volume, screen resolution, startup disk selection, and time zone information. If issues persist, your Mac's logic board battery (not a portable Mac's rechargeable battery) may need to be replaced. The logic board battery helps retain NVRAM/PRAM settings when your computer is shut down. You can take your Mac to a Mac Genius or Apple Authorized Service Provider to replace the battery on the logic board.