Use a variable for gravity.
Here:
Global Variable: GravVar = 0
Keyboard ON SPACE KEY RELEASED
GravVar = 0 | WAIT 0.1 Seconds.
| Set GravVar to 1
GravVar = 1 | WAIT 0.1 Seconds.
| Set GravVar to 0
GravVar = 0 | Set Player Gravity to 1500
GravVar = 1 | Set Player Gravity to -1500