Ghost issues and soft keys .
I have my nexus 4 for a year now, it's a pretty good device but recently I'm experiencing strange issues, It first started with the soft keys suddenly not working so even after rebooting they would only go away after some time then I tried switching to a custom ROM it worked fine until the problem happened so I flashed the stock android 4.4.2 and same thing but actually now I see ghost touches and the softkeys not working !!! I read that replacing the battery might fix it is it true ? If it is then why? Any way to solve this ?