A key signature in music notation indicates the key of a piece by specifying which notes are to be played as sharp or flat throughout the piece, providing a framework for its harmonic structure. It simplifies reading by eliminating the need for accidentals on individual notes, thus helping musicians understand the tonal center and scale used in the composition.