|There is a possibility that there could be a problem with your battery charger.|
Do you always have your charger plugged in when you are using your laptop? If you do then take it out and try it without..
Try plugging into your laptop an external USB mouse and keyboard if you have the ports for it on your laptop. If it works then it could just be that the laptop keyboard and mouse need replacing.
Get back to me and tell me what the outcome is.