code: public void deleteWord(boolean backwards)
  	{
  		if (!selectingText)
  		{
  			selectingText = true;
  			selectionCursor.from(cursor);
  			cursor.jumpToNextSpace(backwards);
  		}
  		deleteSelectedText();
  	}
docs: Deletes the text from current cursor position to the next space.
  
  @param backwards whether to look left for the next space