Mouse or keyboard input to an application window causes the operating system to direct messages to that window.