Press ESC to close

reusable logic