Madison Keys held her nerve to win a dramatic quarterfinal encounter with Petra Kvitova at the China Open on Friday.