Use the left and right arrows to move the apple side to side and to "jump" press the up-arrow. The Apple falls using gravity but is "stopped" (actually lifted) by green pixels!
I followed the direction I found at https://scratch.mit.edu/projects/1343219/#player