Space to switch gravity. Press g to get a challenge. Press g only once because if you do it more it will turn impossible.