Question: The shift from one key to another within a composition is called?
Answer: modulation
Natural Questions answer: modulation (from the Wikipedia article "Modulation (music)")