Fixed tabbing/enter key handling