you mean you want your hero move left and right when you press a key? this is what i do when i want the player move left and right:
i add platform behavior to the player
event : touch - is touching for example left ( left here is the name of my left arrow ) ?action : player : set animation to "running"
player : set mirrored
player : Simulate Platform pressing left
and the same thing to make your player move to right