How do I lock the camera?

Could you show what you have taking place when you trigger a direction change?