A-flat minor is rarely used as the main key of a piece of music .
Although A-flat minor occurs in modulation in works in other keys , it is only rarely used as the principal key of a piece of music .