Yes, a keyboard and mouse can still function. The vast majority of keyboards and mice today use USB cables, which are capable of delivering power to the device so that it operates properly. In most cases, provided the USB cable is still working, the keyboard and mouse will continue to function.
In some instances, a keyboard or mouse may need to be updated in order to function properly. This is especially true for wireless devices, which require the installation of driver software in order to be able to used on a computer. However, once the necessary updates are performed, the keyboard and mouse should still be able to work as expected.
On rare occasions, a keyboard or mouse may become physically damaged, making it unusable even if other components of the device are still functioning. This is usually caused by excessive wear and tear or by an accidental drop. In such cases, replacing the keyboard or mouse with a new one may be the only solution.
In general, both keyboards and mice can remain functional for several years, although their performance may degrade over time. In order to keep them running optimally, it’s important to regularly clean them and to ensure they are kept away from harsh environments and liquids. Taking these simple steps can help ensure a keyboard or mouse continues to work properly for many years.