In an information processing apparatus according to the present invention,
a control unit notifies each application program of a key input event in
a multi-window system. If the state of a first application program is
inactive, the control unit determines whether or not the event notified
to the first application program is a key input event caused by a key
other than an active switching key. If it is determined that the event is
a key input event caused by a key other than the active switching key,
the control unit causes a clock circuit to time a predetermined time
period, and performs control so as to omit part of processing by the
first application program, or to provide a predetermined wait time in
between the processing by the first application program, until the
predetermined time period is timed out.