Use the four-way controller to move and the spacebar to dash. At first, the music will be delayed, so I think it's better to press the flag twice.