Maria Sharapova survived a scare to beat Madison Keys in three sets at the second round of the Western and Southern Open