Paste into console, hit Enter, then exit Developer. after the timeout has elapsed you should see the element get focus, and hitting Enter returns the alert.
What version of Android are you running? Older versions used a separate web view implementation that may not support features like arrow functions. I will also point out that your code doesn't include an if statement, so it's simply check that evt.key === "Enter", then show the alert. The alert will fire on every key press.
Above tested in Emulator using computer keyboard, things are different on a phone/device, and you need to use Android keycodes. However, the "Enter" key on an Android soft keyboard on my phone does not want to respond. For initial testing I used the spacebar:
TIMAI2 i will try your code, is it always better to join the JS code from several text strings?
I write complete JS code in one text string instead of five.
I do that so that you can see all the code, otherwise most of it is lost in the blocks image and you have to then copy and paste the code again to the community.
This is how my soft keyboard displays when in an editable textbox in an html page in the webviewer. Sometimes it has no vertical bar to the right of the arrow.