Put focus on dcc.Input with Javascript

I found out how to use dash-extensions EventListener to get information about the keyboard events. In my case I want to check if “Enter” was pressed. This I do in a standard callback.

Now I would like to focus to specific dcc.Input elements depending in which dcc.Input the “Enter” press event happened.

Is it possible to select an element after a EventListener callback by id like: document.GetElementById("inputXY").focus()?

Thanks in advance!