JSFiddle - React, Tailwind, and code Playground by namuol April 02, 2012 JavaScript window.onkeydown = function (e) { console.log(e.keyCode); }