I literally let my characters take over my mind/emotions, just kind of use me as a vehicle. It tends to work. The other thing is to keep into focus what the character's primary conflict is, and never really lose sight of that while writing. Likewise if they had some event in their past, keeping that in mind when writing them helps. And moved the topic.