diff --git a/src/lua_hooklib.c b/src/lua_hooklib.c
index 6c709bf48e2660a3fbf5ee3178c35caebcf358be..d1b0d3bdd21b26184f49079c622ae16ec23f5f87 100644
--- a/src/lua_hooklib.c
+++ b/src/lua_hooklib.c
@@ -594,7 +594,7 @@ int LUA_HookKey(INT32 keycode, int hook_type)
 	if (prepare_hook(&hook, false, hook_type))
 	{
 		lua_pushinteger(gL, keycode);
-		call_hooks(&hook, 1, 0, res_true);
+		call_hooks(&hook, 1, 1, res_true);
 	}
 	return hook.status;
 }