private void handleKeys(ArrayList<KeyButtons> keyPressed, boolean setter)
    {
        if (keyPressed.contains(KeyButtons.LEFT))
        {
            mario.setLeft(setter);
        }
        if (keyPressed.contains(KeyButtons.RIGHT))
        {
            mario.setRight(setter);
        }
        if (keyPressed.contains(KeyButtons.JUMP))
        {
            if (setter == true)
            {
                mario.setJump(setter);
            }
        }
        if (keyPressed.contains(KeyButtons.DOWN))
        {
            mario.setDown(setter);
        }
        if (keyPressed.contains(KeyButtons.SHOOT))
        {
            if ((System.currentTimeMillis() - fireBallTimer) > fireBallTime)
            {
                if (setter == true && mario.isFlowerPower())
                {
                    fireBallTimer = System.currentTimeMillis();
                    getMapObjects().add(new Fireball(this, mario.getX() - 2, mario.getY() + 20, 12, 12, mario.getDirection()));
                }
            }
        }
    }