statistics and pattern match module fix
key handler callback will not get ev argument; add run_keys()