JSFiddle - React, Tailwind, and code Playground
by Tgwizman
JavaScript
var kp = [], winCode = [75, 69, 89, 83];
document.onkeydown = function(e) {
kp.push(e.keyCode);
if (kp.length > 4) kp.shift();
var same = true;
for (i=0;i<4;i++) if (kp[i] !== winCode[i]) same = false;
if (same) alert('You win');
};