Moody comes from Middle English mody, from Old English mōdiġ, a formation in Proto-Germanic -gaz and Proto-Indo-European -kos whose original sense is unknown.
moody (English): Given to sudden or frequent changes of mind;...