All dialogs in Serna close when you press the Esc key, except for the three dockable dialogs: Insert Element Dialog, Element Attributes Dialog and Find&Replace Dialog.
To make these dockable dialogs close on pressing the Esc key, do the following:
To call up the Preferences Dialog, choose .
Figure 1. General tab.