closes an open popup with escape key

References #951 
is the `map._popup` check necessary? `closePopup` should take care of that