fixed bug that caused double-key characters to fail when caret was moved