Create Key Signature Change
Change the key signature for the current project.
Create key signature changes in Logic Pro — Apple Support
When Enable Complete Features is selected in Logic Pro > Preferences > Advanced, you can add key signature changes to a project in the Signature List, Signature track, or Score Editor.