okay, there's a few different ways to do this, but the way pixel did it was to reduce the gravity if you were traveling upwards and the jump key was being pressed.
ie, if you were traveling upwards, under the key_check_pressed(vk_up) or whatever you have, if gravity was normally 1, you would...