Possible to unbind 'ESC' as exit?

Using the MAME core, I’m trying to unbind a control within MAME and the key to do that is also ‘ESC’. Is there any way to unbind this? Thanks.

Nevermind, just found it.