...Right now, I'm just using the default keyboard on my laptop (Inspiron 15 5000 Series). I don't know how this would help, though.
There is a chance that it is at least partially linked to the keyboard being used. Which keyboard are you using when this issue is happening? Knowing that information will be helpful in figuring out what is causing this issue and how to, hopefully, fix it.