Take key as const char *.