JSFiddle - React, Tailwind, and code Playground

HTML

<div>
  <p>
  With NVDA <strong>disabled</strong>, when you press enter on this button a count should appear and increment with each keypress. Tabbing onto and off the button also works as do most other key events.
  </p>
  <p>
  With NVDA <strong>enabled</strong>, when you press enter on this button the count will not increment. Tabbing onto and off the button also works as do most other key events.
  </p>
  <button id="keydown">
   Press Enter on me
  </button>
</div>

<p id="textOutput">

</p>

JavaScript

var count = 0;
$('#keydown').on('keydown', function(){
	$('#textOutput').text('Count: ' + count++);
});