add a boolean before you set the Location of your Player.
Have it true by Default and let the character Position update if the boolean is true.
Than you want to set the Boolean to false every time an input Event on press is fired.
Than when the Event “release” fires, you want to set the boolian back to true and your Player will continue to move upwards.
This is not the perfet method, for the best solution look into Keyword: Array
This should get you going until you figure out better Solutions.