Use of tab deactivates trigger

Any ideas re. how to do this better would be appreciated.