Why do composers choose certain keys for their pieces?
Composers choose keys the way abstract painters choose colors. Some composers associate certain moods or characters with certain keys, but the associations vary from composer to composer. Sometimes a musical idea just happens to occur to a composer in a particular key. The fact that certain instruments sound better in some keys can also influence the choice.