Adding keydown listener for 'esc' key to close the overlay.