Up and down keys to select an action. Space to do selected action.
Tip: The boss does between 7 to 10 damage, so eat the food at really low health and hope that Flowey doesn't do much damage.