Up, Down, Left, Right are the arrow keys. To attack, go to a fight square. They will pop up every 20 seconds. Press the space bar when it lights up.
All Credit for the sounds goes to Toby Fox, the creator of the actual game "Undertale". If you spawn with 19HP instead of 20, just hit the flag again.