how to check if a key is pressed in csharp unity code example Example: unity check if key pressed if (Input.GetKeyDown(KeyCode.KEY))