img = document.querySelector('.popup img');

	switch (e.which) {
		case 27:	// = Escape
			hideModal();
			break;
		case 37: // left
			if (v){
				if (!v.paused) {
					v.pause();
					v.currentTime = v.currentTime - 5.0;
					if (v.paused) {
						v.play();
					}
				}
			} else if (window.currentLink && (img || !v || (v && v.paused && v.currentTime == 0))) {
				const prev = findNextPrevLink(window.currentLink, REGEX_TYPE_CAN_PREVIEW, true);
				if (prev) {
					onLinkClicked(prev);
				}
			}
			break;