Escape key to hide edit dialog