There are a lot of issues with the code. An example is that If ... Then need and End
Here is how I would code it:
0→C ;This is our counter
startTmr→T
While checkTmr(T)<10
If getKey=105
C+1→C ;Since our IF block is only 1 line of code, we don't need a Then... End
End ;for the While loop
Disp "PRESSED ENTER",C,"TIMES"
Since the If statement only had one line of code, it doesn't need a Then... End
The optimized version looks like:
startTmr→T
0
While 10>checkTmr(T
Ans+(getKey=105 ;In BASIC a TRUE statement returns 1, a FALSE statement returns 0. So this adds 1 to Ans when getKey=105
End
Disp "PRESSED ENTER",Ans,"TIMES"
EDIT: Fixed a copy-paste typo, added some comments, fixed title