Still getting used to lua, never used it before, changed as suggested, not using keyset() was silly mistake on my part though. Changed in latest version