close the picker when the escape key is pressed