@Override
			public void eventDispatched(AWTEvent e,
					JLayer<? extends Container> l) {
				if (e instanceof KeyEvent
						&& ((KeyEvent) e).getKeyCode() == KeyEvent.VK_ESCAPE) {
					if (closing)
						return;
					closing = true;
					if (fadeOnClose)
						fadeOut(dialog);
					else
						dialog.dispose();
				}
			}