Whenever I press "w", it wont register my input. It isn't the code inside of the if statement because it isn't even printing "w"
Try forking the repl. The repl might just be broken.
@Zavexeon I have already solved the problem but that is basically what I did. The problem was with repl.it so I just marked yours as the answer. I just copy and pasted the code to Visual Studio Code (A great coding program) and it worked.