Press space to roll the dice
Credit to DK's book, Help Your Kids with Computer Coding. This is project 2. I know this is so stupidly basic but it's what the book says so please don't leave bad comments.