Use the up arrow to jump. Use the down arrow to duck. Try to dodge all the obstacles. Press the button for AI mode. If AI mode is not working, refresh the page.
Credit to google for making the original game.