there are twelve major and twelve minor keys (properly called “modes"). this is because a scale can start on any note, and there are twelve notes within an octave: seven white notes and five black notes on a keyboard. each major key has its own key signature. the relationship between the keys is explained in the article "circle of fifths". each minor key shares a key signature with one of the major keys.