Clean a Mac Magic Keyboard in 6 Steps: Power Off and Wipe Lightly
Apple advises turning off or unplugging its Mac keyboards, then wiping the exterior using a lint-free cloth lightly dampened with water. Keep moisture out of openings.
Do not spray cleaner into key gaps or pry off keycaps for routine dust. This guide covers the outer surface of Apple wireless and USB keyboards for Macs, including Magic Keyboard, not the iPad Magic Keyboard case.