The correct spelling for "hangun" is "handgun". To avoid the misspelling, one can remember to use the letter "d" instead of "g". Additionally, utilizing proofreading tools or double-checking spelling in a dictionary can help ensure accuracy when referring to firearms.