Use space to continue text and A to skip it. The rest is explained in game. Press the green flag twice. Don't press Z before you're told to, and don't press Z when you've pissed Flowey off.
Undertale belongs to Toby Fox 0.01: I just started working on this, and I can already tell there are going to be a lot of scripts, this is going to be hard... 0.02: I didn't predict making enemies would be this hard, but at least i added a murder count. I also added the FIGHT and MERCY options.