Well I managed to recreate the glitch again. This time I can still move the block up and down as well as spin it. It didn't even happen during a level switch either.
In fact, the main trigger seems to be just constantly rushing blocks to the right with the arrow key. Though level transitions can add to the amount of calculations the game is making and probably increases the likelihood of a hang.
Admittedly this glitch probably can be avoided by not spamming/using the right arrow key. Or just play on higher settings where you won't feel the need to speed the blocks up. So your most likely to trigger a game ending glitch while playing on lower levels.