JSFiddle - React, Tailwind, and code Playground

by vladkras

HTML

<input type="text" id="zer" onkeyup="handleRtnKey()"/>

JavaScript

function handleRtnKey() {
    event = event || window.event; // for cross-browsing
    alert(event);
};