altering controls in game

Hello :slight_smile:

What is the simplest way to alter an input after a game has started (eg within a if() inside update() ).

I would like to alter input.up (up arrow key I think?) so that instead of it moving a character forward it actually allowed the character to move vertically upwards? and same for input.down (down arrow?) but in reverse?

Thank you in advance.

OKโ€ฆin case of a ladder:

var onLadder : boolean = false;

function Update() {
    if(Input.GetKey("up")) {
        if(onLadder) {
            moveUp();
        }
        else {
            moveForward(); 
        }
    }
}

(onLadder would be set on entering/exiting the ladder trigger, moveUp() and moveForward() are placeholders for the actual functions you use to move forward or up ;))