When a popup is opened, this will be closed when you hit ESC.
However if you have something custom, you can add some javascript to your page to check if a key, in this case ESC, is pushed and do something with this.
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.