JSFiddle - React, Tailwind, and code Playground

Keycode check

by Dave

HTML

<input/>
<label></label>

JavaScript

$('input').on('keydown', function (e) {
    $('label').text(e.keyCode);
});