Jumping sound not working after respawning

I have a jumping script attached to a player. It works until i die and respawn. Any help? i am using javascript

#pragma strict

function Update () {
	if(Input.GetKeyUp("space")) {
		if(!audio.isPlaying) {
			audio.Play();
		}
	}
}

Input.GetKeyUp ? Don’t you want to use Input.GetKeyDown instead ?