Is there a way I can change my keyboard settings on my iphone threw itunes?

I jailbroke my iphone 4s, and downloaded an app for the pattern passcode, and my phone automatically resprung and now my keyboard won't work. So I'm completely locked out of my phone. What can I do! And I have tried restoring it and my phone won't restore

You will have to put your phone into recovery mode then try restoring it again.

Search on Youtube on how to put your phone into recovery mode.