Added tab key handling