Add event binding to 'esc' key when viewing a photo to close photo