1. A device comprising: a memory configured to store: data corresponding to a detected event, wherein the detected event is associated with an input received by a user device, and data associated with a plurality of predicted events, wherein the plurality of predicted events are associated with, respectively, a plurality of times, wherein the plurality of predicted events predict inputs received by the user device, and wherein a particular predicted event, of the plurality of predicted events, is associated with a particular time of the plurality of times; and a processor configured to: determine that the particular predicted event is invalid, select predicted events from the plurality of predicted events based on determining that the particular predicted event is invalid, wherein the selected predicted events are associated with ones of the plurality of times included in a particular time period before the particular time, and cause the selected predicted events to be discarded.