# How do I make my blueprint widget appear when pressing a key bind but disappear when released?

**URL:** <https://forums.unrealengine.com/t/how-do-i-make-my-blueprint-widget-appear-when-pressing-a-key-bind-but-disappear-when-released/2726369>\
**Category:** Blueprint\
**Tags:** unreal-engine\
**Created:** [June 5, 2026, 1:00am UTC](https://forums.unrealengine.com/t/how-do-i-make-my-blueprint-widget-appear-when-pressing-a-key-bind-but-disappear-when-released/2726369 "2026-06-05T01:00:34Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Killintaco](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Killintaco](https://forums.unrealengine.com/u/Killintaco)\
**Post date:** [June 5, 2026, 1:00am UTC](https://forums.unrealengine.com/t/how-do-i-make-my-blueprint-widget-appear-when-pressing-a-key-bind-but-disappear-when-released/2726369/1 "2026-06-05T01:00:34Z")

</div>

Wanting to learn how to add a simple “objective” list into a project. I created a simple graphic but was wanting to make it so if a player would press TAB it would show the list and when released it would disappear (big time newbie, trying to learn.)

If I create a “TAB → CREATE WIDGET → ADD TO VIEWPORT” It doesn’t disappear but adds ontop of each other.

---

<div class="post-metadata">

**Author:** ![AlienRenders](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AlienRenders](https://forums.unrealengine.com/u/AlienRenders)\
**Post date:** [June 5, 2026, 1:35am UTC](https://forums.unrealengine.com/t/how-do-i-make-my-blueprint-widget-appear-when-pressing-a-key-bind-but-disappear-when-released/2726369/2 "2026-06-05T01:35:03Z")

</div>

Yes, AddToViewport does exactly what it says. It will add it to the viewport. Did you add a widget-\>RemoveFromParent to the Tab’s Released event?

---

<div class="post-metadata">

**Author:** ![Killintaco](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Killintaco](https://forums.unrealengine.com/u/Killintaco)\
**Post date:** [June 5, 2026, 1:50am UTC](https://forums.unrealengine.com/t/how-do-i-make-my-blueprint-widget-appear-when-pressing-a-key-bind-but-disappear-when-released/2726369/3 "2026-06-05T01:50:38Z")

</div>

Thank you, that was it

---

<div class="post-metadata">

**Author:** ![dZh0](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@dZh0](https://forums.unrealengine.com/u/dZh0)\
**Post date:** [June 5, 2026, 6:05am UTC](https://forums.unrealengine.com/t/how-do-i-make-my-blueprint-widget-appear-when-pressing-a-key-bind-but-disappear-when-released/2726369/4 "2026-06-05T06:05:50Z")

</div>

I would strongly suggest you use `SetVisibility` instead of `AddToViewpoer`/`RemoveFromParent` especially if you are going to open it on a key press.
