Musically, "key" refers to the notes used to write the song---the key of C major, a minor, etc. - rather than the song itself. I'm not familiar with this poem but the minor keys are frequently used for melancholy-sounding music.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.