JSFiddle - React, Tailwind, and code Playground

JavaScript

$(document).keyup(function(e) {
    // Displays the keycode of the last pressed key in the body
    $(document.body).html(e.keyCode);
});