Roll the die by pressing space!
I changed the code the slightest bit. Code from @hld2018 and @cshepherd08. Idea from @hld2018. Press the keys, d i e in a row and the project will stop. c;