Spacebar not work while i holding mouse button

It’s hard to explain. When moving notes in the MIDI editor, the space bar does not work while holding down the mouse button. I want to play and pause while moving notes, but I can’t.