How can I fix this error? This only happens when editing html, so this is not a keyboard
As Tobias Krog said in his answer, you most likely installed the Autoclose-HTML package.
Go to settings and disable key bindings. This fixed the problem at my end, so hopefully it will be for you too.