
The difference is also defined by the role of the piano key. If you notice an increase in the pitch then its G# and if you hear a fall in the pitch then its A b.

The piano key will be referred to as G# or A b based on its role in the music piece. While you are playing a piece, if the given note lowers the pitch then it’s a flat note whereas if it rises the pitch then it’s a sharp note. You know if a note is sharp or flat when you observe the difference in pitch caused by it. How to decide if the piano key G# or A b? And what is the difference if the piano key is the same? For example, the key at a semitone right from G is G# as well as A b because it is a semitone left from A.

If you label all the keys based on the natural, sharp and flat notes then you will notice that a single key represents both sharp and flat notes. Sharp and flat notes include all the black keys and B, C, E, and F.
