Handle system keypress events during playback.  Refs #11881.
(cherry picked from commit b83e60520062cd338f2b952a8b8bc7aeb0260b27)