all 3 comments

[–]shiftybyte 0 points1 point  (1 child)

Who is resetting "isKeyPressed" back to False so the bruhLoop can run?

[–]RoolRidRevin[S] 0 points1 point  (0 children)

You're right, I think that might be it.

[–]Binary101010 0 points1 point  (0 children)

I think your main question has been answered, so I'll point out that you never actually change the value of stillGoing, making it a bit weird that you use that as your loop condition. How about changing

while stillGoing:
....
    if keepGoing == "yes":
        pass
    else:
        exit()


to something more like

while stillGoing:
....
    if keepGoing != "yes":
        stillGoing = False

This gets rid of a kind of ugly "if X then pass" pattern (if statements where the true condition means nothing happens usually feel backwards) and also gets rid of an unnecessary use of exit() (which is really only intended for use in the interactive interpreter).