JS Vanilla mendeteksi input apa pun

document.onkeypress = function (e) {
    e = e || window.event;
    // use e.keyCode
};
Upset Unicorn