Well for the power issue, it could be the charger cord or it could be the battery. Try charging it when it is totally turned off (not sleep or hibernate) and see if it will charge. If it does, then the charger is probably the problem. If not charging even then, I would try replacing the battery.
In regard to the keyboard ...
NOTE: If you need to type in a password to even get into Windows to do the following, make sure you attached an external keyboard first, to get past the password. Then disconnect the external keyboard and try the following...
1. Uninstall the keyboard driver.
2. Reboot the computer (without reinstalling the driver).
3. When it restarts, it should reinstall the driver on its own.
If this doesn't work, you may...