Added a separate implementation of gwen input handling to support enabling and disabling of events properly later