If you've ever worried about clothes moths setting up shop inside your digital piano or synthesizer, you can breathe easy. These pests have zero interest in your instrument.
Clothes moths—specifically their larvae—feed exclusively on keratin, a protein found in natural animal fibers like wool, silk, fur, feathers, and leather. Your electronic keyboard, whether it's a portable controller, a stage piano, or a full workstation, contains none of these materials. Its casing is typically plastic or metal, the keys are plastic or synthetic ivory, and the internal components are circuit boards, chips, and wiring—all entirely unappetizing to a moth.
While it's theoretically possible for a moth to wander inside seeking shelter, they won't eat, nest, or reproduce there. Any "damage" would be purely cosmetic—perhaps a stray wing or cocoon near a vent—but even that's highly unlikely. So go ahead and store your gear without fear. Just keep your wool sweaters in sealed containers instead.