Pressing escape hides the popover if visible.