How to set up toggle

I made a jet simulator, right now i have it set so when “y” is held down the jet moves, so my question is, how can i set it up so that the jet moves without having to hold a button down? Thank you guys for your time and consideration.

Sorry for the mis labeled topic, i wanted to put scripting but it said it wasnt a valid topic and i went through everythig this was the only one it said was there

make a new bool called isJetPressed or something like. Then in your update method do:

void Update{
     if(Input.GetKeyDown(KeyCode.Y)){
          isJetPressed=!isJetPressed;
     }
     if(isJetPressed){
          //Do Movement
     }
}