It depends on how you set up the bindings and how you reference the actions.
I have replied to a post here that suggested something similar. It checks for a specific mouse button, but you could modify it to check for a specific number key.
You could also look at this, which may help with eliminating a large switch
. It uses a for
loop instead