If you are referring to changing key sig and the notes at the same time so they still match, see this: