How to move a character along the Y axis x amount of units using the G key?

Hey guys, I am decently new to coding, so I am not sure what I am doing wrong but im trying my best to get this to work. Any help is appreciated. What I am trying to do, is move my player character up the y axis
a good amount of units when pressing the “G” button on the keyboard, effectively “Teleporting” my character. This is my coding so far, sorry for the lengthy explanation

using UnityEngine;
using System.Collections;

public class Teleportation : MonoBehaviour {

	// Use this for initialization
	private void Start () {
		GameObject player = GameObject.Find ("Player");

		if (Input.GetKey(KeyCode.G){
			transform.playerpos= new Vector3(0,0,0);
		}
	}
}

GameObject player;
void Start () {
player = GameObject.Find (“Player”);
}

     float JumpOffset = 5f;
     void Update(){
if (Input.GetKey(KeyCode.G){
             player.transform.position = new Vector3(player.transform.position.x,player.transform.position.y+JumpOffset,player.transform.position.z);
         }
}

Any input-detection should be in a repeating function (usually Update()) so that it can be detected.
Then you want to use the transform of the gameobject (player.transform, where player is your gameobject) and set it to a new Vector3 were every variable is your current position with an offset to create a new position that is above the gameobject.