Fix tab key behavior