picking problem

i get picking to work, but i can only perform an action e.g. scale, rotate as soon as the object is picked. How could i pick an object and then wait until i click the mouse or press a key before it does anything. I also only want to be able to move one object(the picked object) at a time.