Refactor code to support parsing ascii keys.