Complex sentence: In this case, the application registers a callback function within the operating system and, later, the OS calls the application to signal events like mouse clicks or key hits.
Split into simpler sentences: In this case, the application supplies (a reference to) a specific custom callback function for the operating system to call. The OS then calls this application specific function in response to events like mouse clicks or key hits.