Changing the key signature

Help → | English → | Changing the key signature |
Activate the tools panel (using the mouse or the Alt+N hotkey).
Press the arrow on the button and choose a new key signature from the list.
Move the mouse cursor over the desired position in the staff and press the left mouse button.