Escape key or button set to escape not working

So its as the title says, escape key won’t work with Input.GetKeyDown(“escape”) or Input.GetButtonDown(“Escape”) and the button set to the escape key. xD

Any other key works but not escape. Whats weird GetKeyUp or GetKey or GetButtonUp or GetButton work but I can’t use it for what I want in that case.

I also tried building the game and sending it to a friend and it doesn’t work for her either. It used to work fine tho. Any other key works.

Here’s the part of the Update() with the keys. I don’t want to post the entire script cause its huge and the rest of the update part doesn’t have anything to do with the escape key or anything with in the if statement. I tried changing places or saying else if but to no avail.

function Update()
{
	if(Input.GetKeyDown("p"))
	{
		Time.timeScale = 0;
		guiMode = "Paused";
		Debug.Log("Paused!");
	}
	if(Input.GetKeyDown("escape"))
	{
		Time.timeScale = 0;
		guiMode = "Paused";
		Debug.Log("Paused!");
	}
}

I’m an idiot, sorry to have bothered you, I fixed it. It was a brackets problem in another part which immediately made it go from pause to resume. Thank you obsession for Debug.Log() xD