Inspecting objects ingame

How to set up to inspect an object by key input and then you can rotate it all ingame.