Eat the red food. Don't hit the walls or yourself.
Arrow keys or WASD to move, Space or P to pause. Swipe on touch screens. T toggles autoplay; steering yourself takes back control.