Make your character move when you press a key.
Select your sprite by clicking on its thumbnail:
Add these scripts to make it move up and down:
Try it! Press the up and down arrow keys on your keyboard: