Thanks!
Perhaps the bug was caused by your mouse? Usually it's because the mouse is pointed at a character and this overrides the keyboard inputs.