Adjust the health bar using the slider. Move with the left and right arrow keys, and jump with the spacebar. Keep the apple from touching the ground, as that will end the game. However touching the apple restores some health. Be careful, as touching the spike will reduce your health, and if it reaches zero, it's game over.
Healthbar credits to @JustFinishedCoding