I've tried absolutely everything, but I cannot get my iPhone to stop playing the unlock sound when I click any key on the keyboard; I've tried going into system/Library/Audio/UIsounds and playing the keyboard click sound and it is the absolutely normal click sound. I had the same problem on my 1st generation iPhone but I didn't try as hard to get it off.
Figured this out after some mad worrying lol.
If you are running a custom theme via winterboard you probably have a Tock.caf file in the UISounds folder of the theme that is conflicting with your new custom one u just put in. SSH into ur iphone and locate your theme, then delete the Tock.caf file from your UISounds folder within your theme file. job done - hope this helps.