You're right! Well spotted. The key should reset back to the start on a miss. Thanks for letting me know :) I've uploaded a patch with the fix. Thank you for helping to improve the accuracy of this simulation :)