Added option to close popover when escape key is pressed.