Six steps to clean an Apple Magic Keyboard safely
Power off first and use a soft lint-free cloth. Never spray liquids directly into the keys.
Original Apple Support guidance and care instructions
Link to the original Apple Support guidance page
Open source ↗Household sprays and abrasive pads may damage the finish. These steps cover exterior cleaning of Apple keyboards.