To clean a keyboard, start by shutting down your computer or disconnecting the keyboard if it's separate. Use a can of compressed air or a soft brush to gently remove any loose debris and dust from the keys and crevices. Then, dampen a microfiber cloth or cotton swabs with a small amount of isopropyl alcohol or a mixture of water and mild soap. Make sure the cloth or swabs are not dripping wet, as excess liquid can damage the keyboard. Gently wipe the keys and surfaces, paying extra attention to any sticky or dirty areas. Finally, let the keyboard air dry completely before reconnecting or turning on your computer.