MacOS Terminal and iTerm users need to configure their terminal to use the Option key properly. You need Option-Enter to output either Esc+Enter or Meta-Enter.
I tried, but sometimes I actually need the Alt key to behave like it does by default, to enter modified characters such as ~ (which is not on my keyboard). Any other ways?