User:LostOnline/vector.js

var lastKey; var timeout; document.addEventListener('keydown', function(e) { 	if (e.keyCode == 27) {  		document.body.classList.remove('lost-zenmode', 'lost-dark');    	lastKey = ;    	clearTimeout(timeout);  	} else if (lastKey == 18 && e.keyCode == 90) {      document.body.classList.toggle('lost-zenmode');      lastKey = ;      clearTimeout(timeout);    } else if (lastKey == 18 && e.keyCode == 68) {    	document.body.classList.toggle('lost-dark');    	lastKey = '';    	clearTimeout(timeout);    } else {      lastKey = e.keyCode;      timeout = setTimeout(function(e) { lastKey = ''; }, 1000);   }  }); });
 * (function {