Input.GetKeyDown(KeyCode. code example Example: input.getkeyup if (Input.GetKeyUp(KeyCode.Space)) { Debug.Log("Space button is released"); }