Half steps and whole steps
Measure the distance between two keys. All scales and chords are built from these distances.
A is the distance from one key to the very next key. The next key can be black or white.1
A is two half steps. Start on a key, skip one key, and play the key after it.1
Sharps and flats
A (♯) raises a note by a half step. A (♭) lowers a note by a half step.2 Thus each black key has two names. The black key between C and D is C♯, and it is also D♭.
Why this matters
A scale is a pattern of whole steps and half steps. A chord is a number of half steps. If you can count steps, you can build every scale and every chord from any key. You do not need to memorise them one at a time.