Here’s an experiment for those of you hitting the keyboard bug: turn off autocorrect.
For newer versions of macOS this is in the Text tab of Keyboard Preferences.
For older versions of macOS this is in the Text tab of Language & Text Preferences.
Turning off autocorrect did not solve the issue for me.