private static void handleHeroAbilityKeys(Hero hero, Input input, HUD hud) {
		for (int i = 0; i < HeroInfo.MAX_ABILITIES; i++) {
			if (input.isKeyDown(ABILITY_KEYS[i])) {
				try {
					AbilityType ability = hud.getAbilityWithNumber(i + 1);
					hero.tryToUseAbility(ability);
					if (input.isKeyPressed(ABILITY_KEYS[i])) {
						hud.abilityKeyWasPressed(i + 1);
					}
				} catch (IllegalArgumentException e) {
					System.out.println(e.getMessage());
				}
			}
		}
	}