Fixed double-input bug by preventing it from being dispatched a second time to generic keys.