Making FPS Controller move directly upwards

Hello,

Similar to what you would do when you climb a ladder, I’m trying to move the FPS controller with Vector3.up not really sure if I can achieve what I want using this:

#pragma strict

var ChController : Transform;


function Update()
{
	if(Input.GetKeyDown("w"))
	{
		ChController.transform.position += Vector3.up * Time.deltaTime;
	}
}

Use the Search (I searched for “character controller ladder”)