AlertWindow - returnKey and escapeKey not working in latest JUCE version?

Does anyone know if there is an issue with alertwindow not accepting key presses returnKey and escapeKey in most recent versions of JUCE? I just updated to v 7.0.9 and I believe it worked fine in previous versions.

    alertWindow->addButton("Save", 0, juce::KeyPress(juce::KeyPress::returnKey));
    alertWindow->addButton("Cancel", 1, juce::KeyPress(juce::KeyPress::escapeKey));