key event applied to navigate the carousel