Fix the bug where Tab character is inserted when pressing the tab key.