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