# Limit Key Press

**URL:** <https://forums.unrealengine.com/t/limit-key-press/373731>\
**Category:** Blueprint\
**Tags:** key, limit, unreal-engine, Blueprint, question\
**Created:** [October 19, 2016, 1:29am UTC](https://forums.unrealengine.com/t/limit-key-press/373731 "2016-10-19T01:29:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Canti\_Prime](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Canti\_Prime](https://forums.unrealengine.com/u/Canti_Prime)\
**Post date:** [October 19, 2016, 1:29am UTC](https://forums.unrealengine.com/t/limit-key-press/373731/1 "2016-10-19T01:29:45Z")

</div>

Hey I was wondering if there is a way to limit the amount of key presses that can be used. In my case I have a grappling hook that is bind to the G key but I want the player to only be able to use it 3 times during the whole level. Thanks

---

<div class="post-metadata">

**Author:** ![Jacky](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jacky/32/918690_2.png) [@Jacky](https://forums.unrealengine.com/u/Jacky)\
**Post date:** [October 19, 2016, 1:47am UTC](https://forums.unrealengine.com/t/limit-key-press/373731/2 "2016-10-19T01:47:08Z")

</div>

You can use a **Do N** node after your input.

---

<div class="post-metadata">

**Author:** ![JohnADaniels](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/johnadaniels/32/1080686_2.png) [@JohnADaniels](https://forums.unrealengine.com/u/JohnADaniels)\
**Post date:** [August 3, 2018, 2:18am UTC](https://forums.unrealengine.com/t/limit-key-press/373731/3 "2018-08-03T02:18:37Z")

</div>

Great answer Jacky, I looked at about 8 different solutions and most used TICK, but the DoN is easier and more efficient.
