Use W, A, S and D to move. Collect the apples and don't bump into the walls or your tail.