Added input even management generics. Replaced GetKey and AreKeysLeft with generics. Added GetClick and AreClicksLeft.