Use the up arrow key or w key to jump and dodge obstacles. Whenever you hit an obstacle, you will lose a life. When you run out of lives, your score will reset.
Credit to Scratch.