Both work for me. Try running the script as admin if a specific program doesn't react to it.
In Notepad, for example, it should work anyway. In which apllication did you try it?
@Qysh
Thank you. That did the job.
I have no clue why that made the difference given the format I used previously seems to work just fine for the other 20 or so keys I changed.
Anyways. Thanks for the help.