Add functionality to detect word tapped