You can input key signatures with the keyboard by using the key signatures popover, and with the mouse by using the Key Signatures, Tonality Systems, and Accidentals panel.
Note
You can only input custom key signatures using the panel, you cannot input them using the popover.