use arrows.
I used a tutorial given by scratch. if you want a game where you have to avoid something i will post that in comment section