An image forming apparatus coupled to an information processing apparatus and a network, wherein the image forming apparatus comprises a button, a memory device, a scanner, and a control unit, wherein the control unit is configured to
- store, in the memory, an information processing apparatus identifier that is assigned to the button,
- transmit, to the information processing apparatus, press-down information, wherein the press-down information includes including the information processing apparatus identifier corresponding to the button, in response to a request for the press-down information of the button that is received from the information processing apparatus via the network,
- read a document image set in the scanner in response to a scan execution request that is received via a TWAIN driver as a scanner driver in the information processing apparatus via the network, if, in the information processing apparatus, it is determined that the information processing apparatus identifier in the press-down information matches an information processing apparatus identifier stored within the information processing apparatus,
- transmit image data of the document image to the information processing apparatus via the network, and
- reset the press-down information.