The difference between major and minor keys comes from the way whole and half-steps are distributed through the scale (a whole step is separated by two keys on a piano, including the black keys, while a half step is the step between two adjacent keys). Starting with the base note ("tonic") of the scale, the steps of a…