Text Box Loses Focus on Mouse Click

So I created a widget for Players Chat where if the player controller presses Enter It will change the text box to visible and focus to it to start typing. But If the player clicks anywhere out of the text box the text box loses focus and I can’t get back into the text box as the mouse is invisible.

I tired to use Set Input Game And UI and Set Input UI Only while setting Mouse cursor to hidden. But it still seems as the mouse is enabled and can click back into the viewport.

This is what I have. I would really appreciate any help.

try setting input to gameonly when u click outside of the text box
and make the box invisible, since you are checking for that as well