JSFiddle - React, Tailwind, and code Playground
HTML
<html>
<canvas width=200 height=200></canvas>
</html>
CSS
canvas {border:1px solid red;}
JavaScript
$("canvas").keydown(function(e){
$("html").append(e.keyCode);
});
<html>
<canvas width=200 height=200></canvas>
</html>
canvas {border:1px solid red;}
$("canvas").keydown(function(e){
$("html").append(e.keyCode);
});