It can be seen, then, that each key signature is a shorthand representation of the scale, showing only the sharps or flats which occur in that scale. Where an additional sharp or flat occurs, it is not included as part of the key signature, but is written in music, e.g., in the key of G, if a D# note occurs, the sharp sign will be written immediately before the D note, not at the beginning of the line as part of the key signature.