Press space to start moving and use the left and right arrow keys to move left and right.
I made this with the coding and ideas from a book about how to create some scratch games.