change gravity with a button

Is this similar to jumping or more similar to free flight ? (think Dead Space zero gravity movement). If jumping + gravity scale is not what you are looking for then you could try to set the character movement mode to flying instead of walking. With the flying mode I think you can still implement gravity while you can also implement movement comparable to zero gravity flight.