Is there another way that user can enter text besides HTML-element?
Into Canvas?
Develop games in your browser. Powerful, performant & highly capable.
You could use the Keyboard object and use Keyboard.StringFromKeyCode(Keyboard.LastKeyCode) to get the last key pressed.