<input type="text" value="focus here then tab down">
<div tabindex="0" id="item">Hit enter while this is focused.</div>
<input type="text" value="tab up">
<p>Tab to the text and hit enter. View the results in the console. You will see that because of the JS that turns [enter] into [click], you get both [click] and [enter] when you hit enter, thus firing the "toggle" twice, thus undoing the toggle.</p>