Hello all. I've been searching all over for the solution for this. Hopefully someone here can help me with a code.

Basically I want to assign the UP, DOWN, LEFT, RIGHT, and LEFT MOUSE keys to command buttons. So for example: when I click command1, it would function as the UP key, clicking command2 would function as the DOWN key, clicking command3 would function as the LEFT key, clicking command4 would function as the RIGHT key, and clicking command5 will function as the LEFT MOUSE key.