Key signature, in musical notation, the arrangement of sharp or flat signs on particular lines and spaces of a musical staff to indicate that the corresponding notes, in every octave, are to be consistently raised (by sharps) or lowered (by flats) from their natural pitches.