When using a MAC- Hit alt (option) and e at the same time, then press the key you want the accent on.
For a tilde (ñ), press option 'n' and then 'n'.
When using a PC: