Keyboard/Trackpad keeps typing at the start of my sentence
Hello I have a question,
My macbook has been typing strangely recently and it's extremely frustrating when I'm doing work on documents. Recently whenever I type on my macbook it would randomly go to the start of my sentence that I'm typing or go to a different part of a sentence and it would stay there until I change it back to the end of the sentence. I've restarted my macbook a few times and nothing has changed and it still types in random places of my sentences, and sometimes it would sense my trackpad and it would randomly go to a part of my text and start typing there.
MacBook Pro 13″, macOS 12.2