Composers of the 19th century (and before) had a firm classification of what key is about what mood. Was pretty interesting to me:
https://wmich.edu/mus-theo/courses/keys.html
LC