You dropped an `h` here. Should be `$keyLength`.