Any desired key signature is specified by listing the accidentals as they occur in a key signature statement. Thereafter, all notes of that instrument part are sharpened or flattened accordingly. For example, for the key of D, type
!key "#fc"
The keyword which follows the `!' may be abbreviated to the first two characters.