If it's not a CLI, then I always check the words with red lines, and either allow it to be corrected or add it to my dictionary. Works with Atom, as I'm sure it does with other editors. I'm a weirdo that turns off auto-correct or the list of recommended terms that inserts the proper term for you.
When it comes to this type of thing, it could also be the position of your hand on the keyboard, what keyboard you're using, the height of the surface that it's sitting on or the position of the chair... along with a million other things.
Don't ignore what you type, as you type it. A lot of my colleagues have sped through their code. Almost as if they weren't caring for it properly. Spacing, proper nesting (-=cough=- with tabs -=cough=-) - every code block should be well structured and composed with a small sense of pride.
The fingers have a way of "knowing" where to place themselves after a while, so if it's not about where they're going - but how to get there - train them by typing the word a hundred times in your editor.
Once you train your mind to understand and apply a pattern, that's always the path it will take.