You're missing the ON parameter of the ON INPUT event.

change the very first line to
Code:
on *:input:*:{