In Unity, keyboard input is checked every frame inside the Update() method. The function Input.GetKeyDown returns true only on the exact frame when a key is first pressed. This triggers actions that should happen once, like jumping. Input.GetKey returns true every frame while the key is held down, useful for continuous actions like running or charging. The execution table shows how these functions behave over several frames when the space key is pressed, held, and released. Beginners often confuse GetKeyDown with GetKey because GetKeyDown triggers only once per press, while GetKey triggers repeatedly while holding. Understanding this difference helps control game actions precisely.