What OS are you running? You could try booting you computer in safe mode and see if it is the keyboard. If you try and type and are not getting the same letter it may be that the keyboard map is corrupted. It may be possible that it is a hardware problem.
As a side thought it may have something to do with the language set.