update keys position