Flats In Music. One of the easy ways to find out a key with flats is to see what the penultimate flat is. Flat is the opposite of sharp, which is a raising of pitch.
The scale of a piece of music is usually indicated by a key signature, a symbol that flattens or sharpens specific lines or spaces on the staff. The key of Bb is defined by having two flats in it, Bb and Eb. This is the key of D flat because D flat is the second to last flat in the key signature.
So instead of going one note higher you are going to go one note lower to the left.
If you see Bb and Eb, the next to last flat is Bb.
Instead of putting a flat symbol next to every single Ab, Bb, Db, or Eb note, it's much easier to just place a key signature at. This puts us on a black note which we can either call G# or A♭ (A flat). Sharps and flats can mix, but composers tend to stick with one or the other because it makes the music easier to read, and in turn, the musician (hopefully) makes fewer mistakes.