Dialog should close by pressing the escape key.
Dialog should close by pressing the escape key.