I used to have the same problem when writing emails on my laptop. It was because I was inadvertently brushing the touchpad whilst typing. Solution: turn off the touchpad and use a mouse instead.
I have occasionally had a similar problem with my tablet in that the keyboard section covered the space where I wanted to write. It was actually solved by turning the tablet to portrait view rather than holding it landscape.