Off the top of my head O_o;
+input that makes player dash is pressed
-set value "dash" to (duration of dash in milliseconds)
+value "dash" is greater than 0
+player is facing said direction
-set x component of motion to (speed of dash, - is left + is right)
-subtract 1 from "dash"