# Get digit value from action event

**URL:** <https://forums.unrealengine.com/t/get-digit-value-from-action-event/754758>\
**Category:** C++\
**Tags:** key, Input, binding, unreal-engine\
**Created:** [January 22, 2023, 4:37pm UTC](https://forums.unrealengine.com/t/get-digit-value-from-action-event/754758 "2023-01-22T16:37:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ArtTemiy](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ArtTemiy](https://forums.unrealengine.com/u/ArtTemiy)\
**Post date:** [January 22, 2023, 4:37pm UTC](https://forums.unrealengine.com/t/get-digit-value-from-action-event/754758/1 "2023-01-22T16:37:39Z")

</div>

I want to create a quick slots for my inventory and I want to use digit keys to select active slot.  
Can I somehow create one action for all the digits and then get a digit value in my action handler to know which slot I should select instead of manually creating SelectSlot1Action, SelectSlot2Action… etc?
