How to move mouse while typing?

I recently bought a hi10 pro and wished to play Minecraft. However, when playing, I realised that I could not turn my head while walking. Is there any solution to this problem?