JSFiddle - React, Tailwind, and code Playground
by Hui Zheng
HTML
<script>
function onkeyup_colfield_check(e){
alert(e);
var enterKey = 13;
alert(window.event);
if (e.which == enterKey){
alert('enter');
}
}
</script>
<input id="something" onkeyup="window.onkeyup_colfield_check(event)" type="text">