Hi. I have a Razer keyboard that allows me to macro my spacebar for auto rapid fire while Im holding it down. I was doing this to circumvent the huge amount of space bar tapping to accelerate rounds and cooldowns. It was going fine for a while but if I do it too much it crashes the game. I think it has to do with how fast enemies are spawning or some such. Its worth looking into or at least warning people about. Thanks.
This also happens to me whenever I tap the keyboard too fast in general, and has nothing to do with your specific keyboard.
I increased the delay in the macro to 200ms and it doesnt crash as often. I also go to a stairway so that it autosaves prior to do a long spacebar rounds skip.