How To make a character that's not affected by gravity move on the Y axis?

So Im making a game, and i want this robot to move on the Y axis by the press of a button, without making it fall after i stop pressing. (not affected by gravity?)
My game:
(The game is on the level called Glitch Game)

try this

If you don’t want a game object to be affected by gravity you can click on the object --> Edit --> Physics
–> uncheck the box affected by gravity

Screen Shot 2019-11-27 at 5.42.46 PM


@WHatispoppin I know how to turn gravity on, I was wondering if there was a way to move the character on the Y axis WITHOUT turning gravity on.
Thanks anyways.

@JR 01
Works like a charm.