Are you using mIRC v6.15 or higher? /filter -k did not appear until then. The scriptlet works when using 6.16.