Remember the (X,Y) for GameMaker...
Create the myplane object (make sure you name it with no spaces). This is the plane the player will control. Give it a depth of -100 to make sure it lies above bullets etc.
Our main concern is to avoid the plane moving outside the room.
Note: all the Jump actions below are relative!
For the horizontal motions, we check and change the X values...
Now for the vertical motions, we check and change the Y values based on where it is in the room view...
Test it out - check that you can move the plane but it cannot move out of the room at the top/bottom, or off the sides.