JSFiddle - React, Tailwind, and code Playground

by Ian Sanders

HTML

<input onkeydown="onKeyDown(event)" />

JavaScript

function onKeyDown(e) {
  console.log(e.key, e.altKey)
}