Well you can use System Preferences->Keyboard & Mouse->Keyboard Shortcuts to create new shortcuts. The menu item you want is "Close". Unfortunately you can't set a shortcut to be Escape only, but you could set it to command-escape. Close, but no cigar I'm afraid.