Add a button dinamycally, very easy way

Just for havin an example, does anybody know how to press Z key, and show a widget with one button? If I press again there is going to appear a second button, and again, if I press Z key, another button will appear.

I want to add buttons dinamycally but the tutorials are very difficult to understand, if you have a video link it would be great.

So you want a widget to appear each time you press a key?

You should simply be able to use Create Widget, and then link it to Add To Viewport, all inside the key pressed function.

If I am not understanding correctly, and you want it to appear when the key is pressed, and disappear when it is pressed again, then just use a flip flop node, and connect A to the create widget/add to viewport, and the B to remove from parent with the widget as the target.