JSFiddle - React, Tailwind, and code Playground
HTML
<div id="idle">Idle...</div>
JavaScript
$(function() {
var $idle = $('#idle');
$(document).bind('keydown', function(e) {
if (e.altKey && e.which === 75) {
$idle.html('Alt+k');
} else {
$idle.html('Idle...');
}
});
});