Add constness to InputEvent.