Add input gestion for activate machine