Execute on Enter key pressed in TextField

I have a TextField where I want to execute some code if the user presses the ENTER key.

In Vaadin 7 that was no problem as I would just hook up a ValueChangeListener and set the TextField to immediate = false. But in Vaadin 8 everything seems to be set “immediate=true” (as there is no such attribute anymore).

How to do this in Vaadin 8?

Thanks in advance

Mihael