press flag then press q to gain some health, then press w to talk to sans, then press e to talk more, then press r to battle, then press t to fight, then press down arrow to battle more than press up arrow then press left arrow then right arrow to try to defeat him. you lose a heart at the end and then you play the game with the a to