Added TAB key handling