Laptop keyboard and touch pad stop working, caused by battery

laptop keyboard and mouse only works in safe mode. Unplug the battery, only use the power adapter(the charger), the keyboard and mouse back to working.