Added tab switching using arrow keys