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

Melanin

Ecdysone

Serotonjn

Epinephrine