Unplug the keyboard or shut down the MacBook.
Turn the keyboard or laptop key-side down and give it a good shake.
To dislodge any loose debris from between the keys, tap the edges of the keyboard or laptop.

Apple
Dampen a small area of a dry and clean lint-free cloth or paper towel.
Then, gently wipe away the surface dirt and oils that accumulated on the keys.
Clean between the keys, the space bar, and the trackpad.

Apple
Turn the cloth or paper towel frequently so that you’re removing dirt rather than pushing it around.
Use an alcohol-dampened cotton swab to get at corners or small spaces or to loosen stubborn grime.
When using isopropyl alcohol, less is more.

Apple.com
Disconnect the keyboard or shut down the laptop.
Press each key to ensure that the keycaps are properly seated and snapped in place.
The object is to shake out as much of the dry and loose debris as possible.
Hold the keyboard at an angle (Apple recommends 75 degrees for laptops).
Then, spray the canned air in short bursts in the space between each row of keys.
Work left to right, top to bottom, in a zigzag pattern.
Read the instructions when using canned air.
Turn the keyboard 90 degrees to the right and blow compressed air in short bursts from edge to edge.
Remove surface dirt and grime using the instructions above.
How Do I Clean My Mac’s Bluetooth Keyboard?
A Mac’s no-cableBluetoothkeyboard is near indestructible.
It will last for years with preventive maintenance and cleaning.
Removing the batteries ensures you don’t accidentally power up the keyboard as you’re cleaning it.
Move from top to bottom.
Take care to prevent moisture from entering any opening.