Power button going crazy

Ive read about others having the same problem I have.
My power button acts like if it was being randomly pressed from time to time. Sometime it does it really often like every second.
And it doesn't work if I press it
It's just like if it was randomly pressed when I don't touch it, making my phone pretty much unusable.
I'm fairly sure it's hardware related cause if I turn my phone off, it will power on by itself in a few seconds.

XDA Developers was founded by developers, for developers. It is now a valuable resource for people who want to make the most of their mobile devices, from customizing the look and feel to adding new functionality.Are you a developer?