OnTriggerStay not working properly

I have an object that when the player is touching it and they press a keyboard button, it will load a new level, this seems to work in the unity player, but when I do the same thing on the proper thing (Build and run), it doesn't do anything. here's the code:

function OnTriggerStay(other : Collider) {

    if(other.gameObject.CompareTag ("Player")){



            Screen.lockCursor = false;




Only thing I have in mind : Are both level included in Build Settings ?

Turns out, changing Input.GetButtonDown to Input.GetButton made it work perfectly