Disable Escape key in Safari for getting out of full screen mode
Now, you could go ahead and brute-force disable the Escape key in
  Safari. But that'd defeat the purpose of still allowing Escape to work
  as a shortcut in the aforementioned places, which I'd rather avoid.


See here for an example to remap Escape to ⌥Escape with a Keyboard Maestro macro: