Why does my game keep pausing?

Every time I’ve played recently, my game continuously pauses as if I’m spamming the ESC key.
There’s nothing wrong with my keyboard, its brand new and works fine. It only happens when I play Tower Unite, it’s becoming unplayable. Anyone else having this issue?

I haven’t heard of this before.
Do you have a controller plugged in?

No controller, just mouse and keyboard. I honestly don’t know what it could be. I play other games and it only this with Tower Unite, so I know my keyboard isn’t the issue