Use the arrow keys or a and d to move left and right and aim for the mattress.
I used a tutorial made by a youtuber called professor blue for the gravity but everything else was done by me :)