If the page has focus, space key pauses or resumes the video.
If the video has focus, space key event is triggered for both the page and the video. Thus, space key is pressed twice when the video has focus.
I do not know how to fix this. I'm already using preventDefault to try to block the original actions from occurring.
Today this seems to be fixed(I don't think it was until recently). using chromium 90.0.4430.93 on arch.