public static void handleShooting(Hero hero) { if (KeyboardManager.isKeyPressed(keyTypes[(int)KeyInputType.Shoot])) { hero.shoot(); } }