Adjusting Layer position with keyboard shortcut

When we select two layers from the top and bottom and press Ctrl + [ or Ctrl + ] to adjust the positions. These two layers should come closer like in photoshop and move upward or down. Unfortunately, these layers maintain their position (with extra layers in between) in the frame and move around.