Added performance metric code to measure latency in Unity for Input KeyEvents.