void ScanForAbilityKeyDown() { for (int key = 1; key < specialAbilities.getNumberOfAbilities(); key++) { if (Input.GetKeyDown(key.ToString())) { specialAbilities.AttemptSpecialAbility(key); currentAbilityIndex = key; } } }