Cleaning a Logitech Keyboard: Power Off, Wipe Gently, Never Spray Directly
Logitech recommends switching off and disconnecting a keyboard before cleaning, wiping keys with a slightly damp lint-free cloth, and clearing debris with compressed air rather than spraying liquid onto the device.
Liquids entering the gaps between keys can damage electronics. These steps are based on Logitech's general guidance for removing ordinary dust and finger marks. Check your model's manual for water resistance and removable keycaps.