I have a webpage that includes a <textarea> that uses JavaScript in order to utilize keyboard inputs like the tab key in order to indent lines, etc, just like a normal word processor or text editor.
When ensuring my webpage is accessible for screen readers, how does one handle the tab key in this situation? The user can tab around the webpage just fine but when they tab into the textarea they cannot tab out of it because the tab key is being used in the textarea for a different purpose.
What is the best solution to ensure that screen readers don't have an issue with this?