implementing shift+arrows in queue.