My granddaughter had a similar problem recently. My loccal repair man thinks moisture - small splash on to keyboard is likely. She is at Uni in London so for speed she bought a USB keyboard from Amazon for £9 delivered next day. Works fine.I see you changed yours so it is a puzzle. For non a USB keyboard would at least get you going .Do you have a reasonable repair person locally?
Best phone camera 2017