I died when I defeated the gravity robot thing by falling out of the game, but I think I enabled the zero gravity ability before that happened, so when I revived, I was upside down and couldn't really do anything. When the player dies, reset the gravity.