get the current word at the cursor of any textarea or contenteditable element.