mocha2007 :
I am not sure what I did to cause this problem I hope you can help me
As Waferthin says, a bit more information is needed for us to be of assistance.
I'm not sure if you're talking about a broken 2 key, of if it's just giving you a different output than normal. If pressing shift+2 now gives you a " instead of a @ (or another character entirely), then you may have inadvertently changed the language setting on your computer. This has the knock-on effect of altering your keyboard layout.
If that is what has happened, head
here to change the language to what you desire.