It could be Static Electricity build up that can interfere with the touchpad and keyboard. To clear it up, try a hard reset; turn off your laptop and disconnect it from any external power source. Then take out the battery. Next, hold your laptop's power button for about a minute. Then replace the battery and power up.
I notice, in your post, you state it works in safe mode, so this may not be beneficial.