Make `esc` exit detail popups

See #11
Better event handling for 'esc' key
Allow exiting detail popup by clicking overlay

See #11