JSFiddle - React, Tailwind, and code Playground
by brigand
HTML
<label>
Focus then press ctrl-l
<input type="text" id="inp">
</label>
<pre id="out"></pre>
JavaScript
inp.addEventListener('keyup', event => {
const { key } = event;
const ctrl = event.getModifierState('Control');
out.textContent += `key: ${key}, ctrl? ${ctrl}\n`;
})