This script works pretty well for player 1
u:: ;This sends a z key press every time you hit the U key.
Send, {z down}
Sleep 2
Send, {z up}
return
i:: ;This sends a UP arrow key press every time you hit the i key.
Send, {Up down}
Sleep 200
Send, {Up up}
return
k:: ;I think you can see what is going on.
Send, {Down down}
Sleep 200
Send, {Down up}
return
j::
Send, {Left down}
Sleep 200
Send, {Left up}
return
l::
Send, {Right down}
Sleep 200
Send, {Right up}
return
The sleep commands are needed so the game can register the key presses. I tried smaller numbers and the controls became erratic. It is a little counter intuitive. Try playing with the sleep values to get optimal control.
I hope this is helpful. You can setup the script to run when Pac Man museum opens, and terminate when you close the game.
I am dog tired now. See if this helps. Let me know if I need to research this further. Unless someone else who has used this program before wants to chime in with a better way to do this.