Enharmonic notes
Also: enharmonic equivalents
Two names for one key, such as F♯ and G♭, or E and F♭.
Every black key has two names: the key between F and G is F♯ or G♭. A few white keys have a second name too: E is also F♭, and C is also B♯.
Which name is written depends on the key. D major has F♯, because its scale already has a G; D♭ major has G♭, because it already has an F.