isValidKeyIndex

Checks if the Key index is of the given valid range.

Return

true if valid or false otherwise.