在主题中按 J/K 键时,若用户使用鼠标滚动会导致功能失效

Down arrow and space bar are good alternatives to using the mouse. However, I think if the de-selection of a post happens when it is out of the viewport, that is still a good solution. As the next time you press J or K, it will pick a post that is visible to you.