How do you transition from one piano key to another?
The smoothest way to modulate from one key to another is to use a pivot chord. A pivot chord is a chord that both keys share in common. For example C major and G major share four chords in common: C, Em, G, and Am. Any one of these chords can be used to transition smoothly from C major to G major.