Summarize this article:

You can use easy keyboard shortcuts to quickly insert Spanish accented characters and symbols into any Mac application. You'll use a keyboard shortcut that combines the Option key with a character, followed by the character that receives the accent. Here are the different codes for each letter with an accent: A or a: Option+e, and then type A or a. E or e: { Option+e then type E or e. I or i: Option+e, then type I or I . O or o: Option+o, then type O or o. U or u: Option+u, then type U or u. U or u: Option+u, then type U or u. N or n: Option+n, then type N or n. : Option+ Shift+?. : Option+1.
Open the app you want to type in. Find the keyboard combination for the character you want to type.