Hitting escape key closes dialog. (Configurable).