Adaptive Thinking: Large Language Models Know When to Think in Latent Space