A is to go left W is to jump and D is to go right
special thanks to @ItzMash1 because 90% of the code is from him. without them, I would not be able to know how to code this in scratch. thanks again.