Ok great. Thanks I figured it out. Slightly different.
in big box, options, keyboard automation,
check off the “use keyboard automation”
choose hold key, which for me was button 3 and then for “close the active window” option I choose button 4.
does the job, works for all emulators now.
Thanks