prevent enter key from creating new line if current line is blank