Any help on how to detect the character left or right of the caret is greatly appreciated.