How to control an object after clicking on it?

I want to click on an object and then be able to fully control with what i want it to do. So click on it to control and maybe press exit to uncontrol.

That is a very broad question. I suggest you use Google to do some research on Raycasting and Physics in Unity.