How do you make the spanish sqiggly line above the n on Microsoft Word?

You hold alt as you type 165 which gives you Ñ.

You hold alt as you type 164 which gives you ñ.

Or you can hold CTRL, the key with the squiggly line on it (and if you want the squiggly line on top you have to hold shift), and the n. This also works for the accent.