add foreachkey to luatable api