I have a problem with this code:

```
void keylist(char key)
{
   //check if the user presses a key
   if(GetAsyncKeyState(key))
   {
      string skey = key;
      buffer.append(skey);
      counter++;

   }
}

```

Everytime I try to run the program it gives me this error:
CodeBlocks Projects\CB32KLG\main.cpp|66|error: invalid conversion from 'char' to 'const char\*' [-fpermissive]|