I've got a TA-1021 and there is a bug that has been present on Nougat and still persists on Oreo. Here are the steps to reproduce this bug:
This is what I'm talking about - MediaSessionService sending key events twice, but only when the screen is off!
Sorry for bumping the thread, but my phone still has the problem even after the official Oreo update. Does anyone else have this problem? :(