Welcome to Android Central! I assume you mean the Home button when you say "middle button." Does this persist after a reboot, or in Safe Mode? https://support.t-mobile.com/docs/DOC-30290. If so, it's probably a hardware problem -- bring it to a repair shop.