How to Invert Gravity Temporarily

I need it to invert the gravity temporarily, I can do the toggles and stuff but how do I make a “fake” gravity that counteracts the pre-existing one and adds upward force?

Make the object not affected by gravity and use a motor behavior instead.

Here’s an example game:
Touch the orange block to switch gravity. Use the arrow keys to move and up to jump.

Solved, Thanks!