create a global variable, let's call it MOVING
On tap left set MOVING to 1
On tap right set MOVING to 2
System compare variable
MOVING = 1 - simulate pressing left
MOVING = 2 - simulate pressing right
on touch is only true for 1 tick, you could also use is touching if you prefer.