Get digit value from action event

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?