Wait for the machine to stop and then grab the money. Press and keep holding to make the machine "STUNNED" and have more reward.