If your iPhone battery isn’t holding charge like it used to or drains faster than you can…
Outdated macOS and drivers can trick the system into thinking a key is broken. Open System Preferences, click Software Update, and install the newest macOS version listed.