I'm building a simple word game on the web (for the sake of example, think Wordle) and the
Enter key has a role in this, submitting the letters you've typed in.
The trouble is that if a user is tabbing around and using the enter key to interact with different screen elements, this is a bit problematic. Whatever they have selected will activate in addition to submitting the letters you've typed. I can use
preventDefault to stop the two from conflicting, but then it's impossible to navigate with the keyboard.
Is there a way to reconcile these two things?