Question: how to change key signature?
Answer: The key signature may be changed at any time in a piece, usually at the beginning of a measure, simply by notating the new signature; although if the new signature has no sharps or flats, a signature of naturals, as shown, is needed to cancel the preceding signature.