A key signature is a group of sharps or flats which are printed at the beginning of a line/measure of music. It shows which notes have to be changed into sharps or flats. For example: if there is one sharp in the key signature it will be an F sharp. It means that every time the note F is written one plays (or sings) an F sharp (on a keyboard: the black note just to the right of the F) instead.