It's kind of self explanatory. Use the up arrow to jump and don't touch the red.
If you are @c0c0atx read this: I have tried 2 different codes to fix the problem of the square falling through the floor. I don't know what is wrong. If I find a solution I will edit my game. Other notes: Please enjoy!