On a PC:
Hold the Alt key and type the corresponding numbers
Alt + 160 = á
Alt + 0193 = Á
Alt + 130 = é
Alt + 144 = É
Alt + 161 = í
Alt + 0205 = Í
Alt + 162 = ó
Alt + 0211 = Ó
Alt + 163 = ú
Alt + 0218 = Ú
Alt + 164 = ñ
Alt + 165 = Ñ
Alt + 168 = ¿
Alt + 173 = ¡ (upside-down !)
On a Mac:
Option + e,
the letter a = á
Option + e,
the letter A = ÁOption + e,
the letter e = é
Option + e,
the letter E = ÉOption + e,
the letter i = íOption + e,
the letter I = ÍOption + e,
the letter o = ó
Option + e,
the letter O = Ó
Option + e,
the letter u = úOption + e,
the letter U = ÚOption + n,
the letter n = ñ
Option + n,
the letter N = ÑOption + ? = ¿
Option + 1 = ¡ (upside-down !)