RIGHT AND LEFT arrow keys to move.
This works better if the speed is greater than the friction. I made this to see how X velocity works so that I could use it one of my other projects.