Use the arrows to move Sonic around an gradually gain speed. Press the X key to perform a Ground Dash! Press "R" to restart a level. I have implemented this because with all scratch platformers, you can clip in the level and lag everything.