Arrow keys to move. Don't make the snake bump into the edge or into itself. Still a work in progress so it is a bit bad(really bad).
I used a scratch book from the local library so thanks to the author, which is Max Wainewright.