Set Input Mode Game and UI creates widget, how do I use it correctly?

Title.

Fixed it by putting it after the add to viewport node.