Windows Vista environment has problems with the keyboard configuration to use it from the system symbol.
Spanish layout keyboard works perfect from the command line but when any program, either a system program or an external one, is run the layout becomes the US English standard layout.
To solve such problem, you must follow those steps.
Place your mouse on System symbol, right click and select Run as administrator.
From the system sign, type:
Once the file is open, add anywhere, without erasing or altering anything already in:
At the end, select (you can use your mouse) File, Exit and confirm you want to save changes.
On the system sign again, type: