Added logic for keyboard navigation