Check for the LEN of the cell. So something like:
If A1 contained "hello", your formula would return "5".
Check this out:
After you have that, we will move on to making it print if you hit a particular key.
Good luck, and have fun!