Finished management of tab keys.