Closing Dialog on ENTER key conflicting with behaviour of Select control

I would like to close my vaadin dialogs with the action to perform as if the user clicks the OK button when hitting ENTER. I already have a solution for this, also considering controls like text areas, where the expectation is that ENTER causes a newline in the text area and CTRL + ENTER triggers OK.

My problem is the Vaadin Select control.
Whenever this one is focussed in a dialog, and user hits ENTER, then first the Select’s selection list pops up, and right after the dialog closes as expected.

So currently, it’s working somehow, but it looks buggy.
Is there a possibility to prevent that the Select Control opens the popup when ENTER is pressed?
Is there a possibility to make my event handling code to be run first and suppress the popup?

I already tried to register my event handler using Shortcuts.addShortcutListener(…) and also as a javascript solution using document.addEventListener(‘keydown’, function(event) { … });, both with same result.