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: http://flowlab.io/game/view/1293348
(The game is on the level called Glitch Game)

try this
2019.11.27-16.32

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
Thanks!
Works like a charm.