You have to put the "^" in front:
Code:
on ^1:input:#:{


Also, here are pieces of my scripts dealing with rewriting the format of events, if anyone cares to check.