With keyboard shortcuts enabled, to reproduce:
- Go to any question (including this one).
- Press e to enter the edit mode.
- Cancel the edit.
- Select anything else with your mouse or keyboard
.keyboard-selected class is not removed and the shadow remains on the post that was auto-selected for the edit.
I'm able to reproduce this behavior in Chrome and Edge on Windows 10 (I haven't tried other OSes).