This simply shows how to move smoothly with key presses, and cause your sprite to face only left or right while moving. Click the green flag to begin and use the arrows to move.
Original Work.