Don't create a UI if the <x-menu> element is not empty
Dismiss the menu when pressing on the Esc key