Former world number seven Madison Keys came from behind to beat No. 19 Coco Gauff 3-6, 6-2, 7-5 to advance to the final of the Adelaide International 2.