I don't know if this is what you are looking for, but this is the way I work with both English and Spanish.
If you have windows XP, follow (click) this options:
1)Control Panel
2) Regional and Language Options
3) Languages
4) Details
5) ADD
6) Select the Spanish you use. I recommend "Spain International Sort".
Then on the lower-right of the screen you will see a little box showing "EN". If you want to switch to Spanish keyboard, click on that box and it will show you the option "ES" Spanish. Click on that and then you can type like when using an Spanish keyboard. So for example the key next to the l would be the "ñ". This way you don't have to do the code thing.
Again,I hope this is what you were looking for or at least helps.