During the middle (B) section the piece modulates through several related keys—E major (the dominant key—bar 15 & 28), G major in the middle of bar 18, C major (relative major—in bar 22), A major (the tonic major—middle of bar 23) and finally back to A minor in bar 29