Implement shift for stack (used for console history)