Added support to close modal windows with Esc