Use the arrow keys to change your direction. Eat apples to grow one tile longer. Don't hit your own body, or the edge.
Thanks to @ShiftClickLearn for the tutorials and the assets.