What can cause a (software) keyboard failure on a unibody macbook?
Are you able to boot into Recovery Mode and test the keyboard there?
To start your computer from Recovery, restart your Mac and hold down the Command and R keys at startup.
If that works, consider re-installing OS X or at least booting into Safe Mode to disable errant extensions and plugins.