allow escaping of contextmenus when escape key is pressed