add tab event for keyboard