Close popups if escape key is pressed