It's explained in the project in more detail. Basically, you change the speed as you press the arrow keys. Then, you slow it down so that the sprite doesn't slide.