Use arrow keys to move. Eat the apples to get more length.
Credit to Scratch for kids as it helped me build this project you need scratcher rank to get world record