Remove all widgets seems to break set input mode and show mouse cursor

Try to replace the EventConstruct with a custom event(eg CustomInit).
Then call that custom event after creating the widget:

Sometime EventConstruct can occur before a frame or an action before.