Keyboard suddenly stop working

I have a Dell Inspiron 14 laptop which has a very strange problem. Occasionally, it's keyboard and touchpad suddenly stop working and the touchscreen becomes the only way to keep working with the laptop. Then, the taskbar icons get bigger and an on-screen keyboard appears on the screen. This problem doesn't get fixed until I turn off the laptop, wait a few minutes, and turn it on again (even restarting the laptop doesn't fix the problem!). I have NO IDEA why this happens and don't know how to even explain it to dell support. I've attached a video of a time when the keyboard and touchpad were not working to this post. I'd really appreciate it if anyone could help me with this problem or tell me what they think is causing this issue.