# How can I cast a event with a key only if another key is pressed first?

**URL:** <https://forums.unrealengine.com/t/how-can-i-cast-a-event-with-a-key-only-if-another-key-is-pressed-first/1672156>\
**Category:** Getting Started & Setup\
**Tags:** boolean, unreal-engine, Blueprint, question\
**Created:** [February 7, 2024, 2:27pm UTC](https://forums.unrealengine.com/t/how-can-i-cast-a-event-with-a-key-only-if-another-key-is-pressed-first/1672156 "2024-02-07T14:27:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Wosvell](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Wosvell](https://forums.unrealengine.com/u/Wosvell)\
**Post date:** [February 7, 2024, 2:27pm UTC](https://forums.unrealengine.com/t/how-can-i-cast-a-event-with-a-key-only-if-another-key-is-pressed-first/1672156/1 "2024-02-07T14:27:32Z")

</div>

So I’m working on a binocular system. I have the binoculars that appear attached to my hand FP Character (attached to a socket) when I press the letter Z, and to use it I have to press the x button which will give me the zoom and the binoculars widget.

The problem is that it only works for the first time, after which even if I don’t equip the binoculars by pressing the z again, pressing the x still makes the binoculars zoom. How can this be solved?, I would like to send some images to make it clearer but I can’t.
