I was able to finally get it to work, using just a bunch of branches and detecting what inputs are being pressed.