Unfortunately you can't configure the Esc Key in FCEUltra. I use a program called "Hot Keyboard" which enables me to assign a key that will call an "Alt+F4" allowing me to close any open window with the one keystroke (mapped to a button on my cab).
If you need a NES emulator that you can exit with Esc, try VirtuaNES.