What does the word hei mean in Japanese?

"Hei" is an exclamation used either to show surprise or when the person didn't hear or understand what someone said.