JSFiddle - React, Tailwind, and code Playground

by Ming Huang

HTML

<span id='test'>
  I am clickable and pressable
</span>

JavaScript

document.getElementById('test').addEventListener('keyPress', e=>{
	console.log(e.key)
})