yes it probably would crash since you can't recompile the rest of the engine. Simple rule is don't change any I*.h file unless you know what you're doing (and there isn't really a reason to do so don't).
Best way to extend the Events is to wrap them again into a new input listener queue with your own structure again.