Fixed triggered to work properly in tick handlero
Fixed triggered keys not working properly in tick handler