JSFiddle - React, Tailwind, and code Playground
HTML
<li >
<a href="#" onkeyup="console.log('Keyboard: Getting '+event.which+' for event:', event)"onclick="console.log('Mouse: Getting '+event.which+' for event:', event)">Test the log!</a>
</li>
<li >
<a href="#" onkeyup="console.log('Keyboard: Getting '+event.which+' for event:', event)"onclick="console.log('Mouse: Getting '+event.which+' for event:', event)">Test the log!</a>
</li>