I am writing an ATM program for college and I have command buttons called
cmd1
cmd2
cmd3
...
cmd0

How can I get the button to depress as the user hits the corresponding number key ?

Thanks.