Fix a bug where duplicate events would fire if the input was restarted (e.g. by the controls menu)