I wanted to know how I could map the escape key to the right "alt" key on the mac keyboard ? Is that possible ?
For the Mac (pre Sierra) you can install Karabiner which lets you do that and more.
Look for Option_R to Escape.
If you already have Sierra you need to wait for the Karabiner update.