If your keyboard is typing wrong characters then you can solve it by the following way:
May be your keyboard language is set to different language because of which it types different characters then you want.
Go to “Control Panel“.
Click on “Region and Language”
Click on “Change Keyboards”
Now check whether the language you want is there or not and it should be at the top. eg English is the language which I use and it is at the top.
If not then you can add the language, Click on “Add“.
Now if you want to add “English” then Select English and expand it.
Now you can select “US” and click on “Apply”and “Ok“.
Now your keyboard should work fine.