Adding TAB input handler