Are you stock and unrooted?
Have you tried a regular reboot (by turning off the phone or taking out the battery)?
As iRillings mentioned, have you tried another keyboard from the play store?
A hard reset (or returning to factory settings will make your phone go back to how it was when you bought it. Unfortunately, there isn't much information in your posts, so it's hard for us to help you.
nnb