Thanks for all the help so far.
Unfortunately it didn't work. I created a "Custom Resources" folder in the data folder. I copied over the "resources.xml" file from the link above and where the similar lines were I added the line:
<Entry Key="Escape" Command="22007" TranslateFlags="32" />
but it didn't disable the ESC key. I also tried making my own resources.xml file with only this in it:
ACCELERATORS:
<Entry Key="Escape" Command="22007" TranslateFlags="32" />
</ACCELERATORS>
</MJRS>
But that didn't work either.