Why is result never == 13 in the following code?

Code:

STRING* strChatInputText;

---

result = inkey(strChatInputText);

if(result==13)
{
AddMessage(strChatInputText);
}



I only want to run AddMessage on an Enter. Running a watch on result and it always has a different value?