Sorry if I'm missing something, I'm quite new to all of this

I'm using LuaMacros to interpret keys on an old keyboard and send key commands to another program however I've noticed that they're usually sent a couple of times when I press the key once. Is there a way to limit it to only one send keys?
Thanks!