The correct spelling of the phrase "hanged onto hat" is actually "hung onto hat". The past tense of the verb "hang" is typically "hung", while "hanged" is reserved for use in legal or capital punishment contexts. This rule can be confusing for non-native English speakers, but the standard pronunciation for both "hung" and "hanged" is /hʌŋ/. So, if you're ever "hanging" onto a hat, just remember to spell it with a "u".