need help

guys urgently tell me how to make the widget open on the p button and close when pressed again

Greetings @ONzoneGAMES

Welcome to the Unreal Engine forums! As you can see, we have a great community here! Clockwork provided a fantastic example for the widget request you asked about as well! Did this solve the issue that you were having? If not, respond here and we can look at some additional information to fit your situation.