I am trying to make the buttons in my game tab-able. So i would like to do something like:
if the cursor is over a button and the primary mouse key was released then do action X.
OR
if the customTabIndex equals the button and the enter key was released then also do action X.
I know I can create two separate events for this and just have the do the same thing, but is there a way I can combine this logic into one event?