.addEventListener("keydown", function(e) not working code example
Example: event listener js keydown not working
window.addEventListener("keydown", function(e){}, true);
//true makes it work
window.addEventListener("keydown", function(e){}, true);
//true makes it work