Esc key to escape "edit javascript code" window

i keep on hitting escape to get out of this popup, would be nice if it worked:)