If you write the event handler by hand,
incorrectly as shown in this image,
then the IDE assumes it's just any old Sub and shows the Intellisense for what you have written:
Thus, quite reasonably, there is no warning that you have got anything wrong.
When the Enter key is pressed at runtime however an error results:
Which means that the compiler
IS seeing this as an event handler for the EditText.
Surely if the IDE does not see it as an event handler then the compiler shouldn't either and should not compile it as such ?