Unlike accent marks which simply guide pronunciation, putting a tilde on top of the letter n in Spanish actually forms a different letter, called eñe. The eñe appears in all sorts of common Spanish ...
Given that there is no Western Spanish keyboard layout in the international preference pane, I'm guessing that it is the same as the Spanish layout. To see exactly what that layout is, enable it in ...