You buy it. The monkey who holds the key for Chim Foo trades it rather than giving it away, so the "when" is really "as soon as you can afford it."
Check your currency balance before setting out, and if you are short, run a few repeatable activities first. There is no waiting period or quest prerequisite involved.