It is very simple. Up, right, and left arrows. If you are going up you can't turn backwards.
Me and my friend made this game together. He also shared the same game but I changed it a bit. You can follow him by searching @erictdeo. Also I am still adding stuff.