Fixed the missing keystrokes issue on the Rich Text Editor