Another compile error

Well, I think this problem is related to Keyboard Entry feature, compilation fails when I put the highlighted action:

Here is the *.txt file:
LatestCompilationOutput.txt (321 Bytes)

I can’t get the Keyboard Entry works fine, I want (if the text in memory is > 0) only take the last character from the keyboard string.