I directed you to the help file

on INPUT

The on INPUT event triggers when you enter text in an editbox and press enter.

Format: on <level>:INPUT:<*#?=!@>:<commands>
Example: on 1:INPUT:#mIRC:/echo You entered the text " $1- " in the #mIRC window



Examples

Code:
on 1:INPUT:#:/echo I just mumbled " $1- " in a channel


Code:
on 1:INPUT:#: {
  if (/* iswm $1) return
  if (cookie == $1) {
    describe $chan takes a cookie out of the jar.
    halt
  }
}