update the posstion of every key