public static IEnumerator HoldKey(KeyCode key) { InputBroker.SetKeyDown(key); yield return(new WaitForEndOfFrame()); InputBroker.SetKey(key); }