Correctly close the SimpleModal overlay with the escape key (see #5297)