Returns the remaining time until the specified key is allowed to be used again, in milliseconds.
the remaining time in milliseconds, or 0 if it is already allowed or not found
the key to check