Make the sprite walk automatically

The sprite walk itself and keyboard control the direct( left or right )