Correct variable name keytype -> key_type.