'This function is called if Mario is standing still'

def standing(self, keys, fire_group):

    self.check_to_allow_jump(keys)
    self.check_to_allow_fireball(keys)
    self.frame_index = 0
    self.x_vel = 0
    self.y_vel = 0
    if keys[tools.keybinding['action']]:
        if (self.fire and self.allow_fireball):
            self.shoot_fireball(fire_group)
    if keys[tools.keybinding['down']]:
        self.crouching = True
    if keys[tools.keybinding['left']]:
        self.facing_right = False
        self.get_out_of_crouch()
        self.state = c.WALK
    elif keys[tools.keybinding['right']]:
        self.facing_right = True
        self.get_out_of_crouch()
        self.state = c.WALK
    elif keys[tools.keybinding['jump']]:
        if self.allow_jump:
            if self.big:
                setup.SFX['big_jump'].play()
            else:
                setup.SFX['small_jump'].play()
            self.state = c.JUMP
            self.y_vel = c.JUMP_VEL
    else:
        self.state = c.STAND
    if (not keys[tools.keybinding['down']]):
        self.get_out_of_crouch()
