How can I change the text on a widget with a trigger?

I want to have text in the middle of the screen but when you start the game its blank but when you walk up to a door
if you have key it says
“Press E to open door”
if you dont have key
“Door locked needs key”

I know how to check if they have key with branch thats easy and have already done that.
How ever I can not seem to edit or even show text to the player. I made a main menu and tried the same way to show text but it did no work.

Does any one have any idea?