Store consumed keys and replay them later, so user keypresses are not lost.