Fixed KeyType regex

Closes #4