General library to divine potential mouse actions and register appropriate responses.