It appears that registering a mousepressed_outside input event does not work for all subscribed elements. Instead, it seems to only handle the last element that had it registered. I did some print debugging for the method invocation and it only printed index 1 and I have two input boxes that should be able to run the method.