while F major contains one flat note, B. The other most common scale is the minor scale, which has the interval pattern T-S-T ...
If you want to play a B major chord, you hit B, a D#, and an F#. One white key, then two black ones. The piano keyboard is not isomorphic, meaning chords of the same quality have different shapes.