Well for starters, what laptop model and make do you have ?
Also did you set a (bios) password or os password ?
Before you set a password on your laptop, was the keyboard working correctly with windows 8 ?
Once you answer all of these questions, I'll look into your issue.
By the way was your laptop keyboard sticky, you know like food or liquid or dirt residue ?