Use the arrow keys to move the scratch cat (I just used it because it's the default sprite). You can also look in the editor to see the code.
WARNING: DOES NOT WORK ON SCROLLING PLATFORMERS! Credits to mslee23 for making the scrolling platformer and me trying this and it didn't work.