The key signature of piece of music is presented as a number (0 to 7) flats or sharps written at prescribed locations representing the key a tune is written in.