On the keyboard
Between C and D there is a black key: from C to D there are two half steps, a whole step. Between E and F there is none: they sit right next to each other, one half step. Tap the keys to hear them.
E–F and B–C
Among the natural notes (the white keys) there are only two half steps: E–F and B–C. Every other step is a whole step. This is the part to know by heart.
That is why the C major scale, all white keys, goes whole, whole, half, whole, whole, whole, half. The half steps fall between the 3rd and 4th notes (E–F) and between the 7th and 8th (B–C).
Accidentals move a note by a half step
A sharp (♯) raises a note a half step and a flat (♭) lowers it a half step. A natural (♮) cancels them and brings the note back.
There are two kinds of half step. F–F♯ is a chromatic half step: both notes have the same letter name. F♯–G is a diatonic half step: two different letters, one after the other. On the keyboard they are the same distance; on the staff they are written differently.
F♯ and G♭ are the same key with two names: enharmonic notes. Which one you write depends on the key and on the interval.