Floor panels are shown, which are provided with a mechanical locking system comprising tongue and grooves provided with protrusions and cavities which are displaceable in relation to each other and configured such that the protrusions can obtain a vertically unlocked position where they match the cavities and a vertically locked position where the protrusions overlap each other.