How to Move my Pawn up on z axis on key press and return to its previous location on release

image

Are you making a flappy bird?