This is my practice routine for getting altered dominant (#5 ... scales (sometimes referred to as the 7th mode of the melodic minor scale) under my fingers and in my brain.
Harmonic minor keys are used when writing chords. There is another version of the minor key known as the melodic minor. This is used when writing a melody. Each key signature has two possible keys.