When a popup is opened, this will be closed when you hit ESC.
This widget can also be used to take care of that logic:
Mendix Marketplace - Keyboard Shortcut
Hope this helps!
Hi EL OUAFI Omar,
As suggested by Johan Munneke, you can use Mendix Marketplace - Keyboard Shortcut to achieve the requirement and call nanoflow.
Please check below screenshots for configuring.