Use The Arrow keys to move left and right. Feel free to look inside and see how it works.
I did it by thinking really hard