The UI launches as an application on top of what you are currently doing, stealing focus.
This is rather annoying, and can be fixed by including
"-Djava.awt.headless=true" in the Surefire configuration.
Jira task:
https://issues.jboss.org/browse/KEYCLOAK-5592
br
Carl Kristian Eriksen