refactoring: press detection now generates a string to pass to the handler