I have a requirement where I need to get the word that was typed in a `contenteditable` div.

Whenever I type a word and hit space I want to know what word was typed. The word can be typed towards the end or anywhere on between.