title: Getting the last entered word from a contentEditable div
body: <p>I have a div tag with contenteditable set to true.
  I am trying to find out the last entered word in the div.</p>
  
  <p>For example, if I type in <code>This is a test</code> and I hit a space, I want to be able to get the word <code>test</code></p>
  
  <p>I want to be able to use this logic so that I can test each word being typed (after the space is pressed).</p>
  
  <p>It would be great if someone could help me with this.</p>