Every transaction involves two keys: a public @spend-key, and a public @view-key. The destination for an output in a transaction is actually a one-time public key computed from these two keys.
In order to spend the funds you have to compute a one-time private spend key for that output.This is almost always done automatically by the Monero Wallet software.