public class ButtonInput : MonoBehaviour
{

    void Update ()
    {
        bool down = Input.GetKeyDown(KeyCode.Space);
        bool held = Input.GetKey(KeyCode.Space);
        bool up = Input.GetKeyUp(KeyCode.Space);
        
        if(down)
        {   
        }
        else if(held)
        { 
        }
        else if(up)
        {
        }
        else
        {
        }
    }
}

 

void Update ()
{
        bool down = Input.GetButtonDown("Jump");
        bool held = Input.GetButton("Jump");
        bool up = Input.GetButtonUp("Jump");
        
        if(down)
        {
        }
        else if(held)
        {
        }
        else if(up)
        {
        }
        else
        {
        }

 }