# Stop event tick when boolean is set to true

**URL:** <https://forums.unrealengine.com/t/stop-event-tick-when-boolean-is-set-to-true/809822>\
**Category:** Programming & Scripting\
**Tags:** event-tick, unreal-engine, Blueprint\
**Created:** [March 23, 2023, 3:06pm UTC](https://forums.unrealengine.com/t/stop-event-tick-when-boolean-is-set-to-true/809822 "2023-03-23T15:06:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![remzXD](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/remzxd/32/636621_2.png) [@remzXD](https://forums.unrealengine.com/u/remzXD)\
**Post date:** [March 23, 2023, 3:06pm UTC](https://forums.unrealengine.com/t/stop-event-tick-when-boolean-is-set-to-true/809822/1 "2023-03-23T15:06:17Z")

</div>

Hello,

If my player hits “F” if a boolean is true, I want to play a success sound or a failed sound if false. I use the event tick to check that. It works except that the sound is being played 3 or 4 times in a raw. I suppose it comes from the event tick, can I manage the event tick to play only one sound only ?

 ![event_tick](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/c/b/2cbbac4db5e9dcdd70c60b8291f5073873d69b79.png)

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![remzXD](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/remzxd/32/636621_2.png) [@remzXD](https://forums.unrealengine.com/u/remzXD)\
**Post date:** [March 23, 2023, 3:22pm UTC](https://forums.unrealengine.com/t/stop-event-tick-when-boolean-is-set-to-true/809822/2 "2023-03-23T15:22:32Z")

</div>

The problem was the delay the key was pressed. I use “Was Input Key Just Released” instead of “Is Input Key Down” and it resolves my issue.
