Repositions the KEYS variable