function onTalk()
    disableMovement()
    walkTo(celeste.Mod.MaxHelpingHand.Entities.MoreCustomNPC.GetNPC("chest").position.x + 10)
    celeste.Mod.MaxHelpingHand.Entities.MoreCustomNPC.GetNPC("chest"):PlayAnimation("openAnim")
    playSound("event:/probanana/ChestOpen")
    wait(1.5)
    celeste.Mod.MaxHelpingHand.Entities.MoreCustomNPC.GetNPC("chest"):PlayAnimation("open")
    if not getFlag("probananakeyget" .. arguments) then
        playSound("event:/probanana/KeyGet")
        celeste.Mod.MaxHelpingHand.Entities.MoreCustomNPC.GetNPC("whoakey"):PlayAnimation("appear")
        wait(0.1)
        celeste.Mod.MaxHelpingHand.Entities.MoreCustomNPC.GetNPC("whoakey"):PlayAnimation("get")
        wait(3)
        celeste.Mod.MaxHelpingHand.Entities.MoreCustomNPC.GetNPC("whoakey"):PlayAnimation("fade")
        wait(0.3)
    end
    
end

function onEnd()
    setFlag("probananakeyget" .. arguments, true)
    celeste.Mod.MaxHelpingHand.Entities.MoreCustomNPC.GetNPC("whoakey"):PlayAnimation("hide")
    enableMovement()
end