Input.GetButtonDown not working

Hi

When i do if(Input.GetButton("Interact")){Debug.Log ("Interaction");} everything works.
But with if(Input.GetButtonDown("Interact")){Debug.Log ("Interaction");}nothing happens.
The same with Input.GetButtonUp.

Hope u can help me

Hve you tried if(Input.GetKeyDown(“keyyouwant”))
{
Debug.Log(“Successful”);
}

Where do you use your code?

Let me guess - you use it in FixedUpdate? If so then sure thing it is a roulette. You should detect all “quick” events (Down/Up/etc.) in Update, as they are triggered only in 1 frame. And GetButton works because it checks if button is hold.

If I guessed right then I recommend you to read through this lifecycle.