Just wait for the dialogue to end, then start spamming the keys in this order, 1(the dialogue happens, wait for that, then start spamming the next key.) ,2,3,4, 5. Wait until the dialogue shows up for each one then start spamming the next key.
Thanks to me, myself, and I