See this project if you want to learn how to do this! https://scratch.mit.edu/projects/67727504/ (copy the link and it will take you there) arrow keys to move and space to jump