This is kind of platform specific. Currently i'm trying to get the meta key working correctly in Pycharm. To enable the meta key in xterm I had to add the setting:
Once I load into pycharm the meta key completely stops working and does the same thing xterm did before adding that setting. Not sure if anybody will be able to help me with this but i'm taking my chances!