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