All the changes of moulting are controlled by the nervous system and a hormone:

Epinephrine

Ecdysone

Serotonjn

Melanin