A key signature is a visual symbol, printed on a musical staff, that indicates what key a section of music is written in. Key signatures are represented by using accidentals—better known as sharps and flats. The number of sharps or flats indicated in the key signature will tell the player what key the music is in.