The code for this could have simpler/less verbose. It's been a while, but I believe in the number buttons this would have worked:
put the short name of me after fld "lcd"
and in the equals sign button: put the value of fld "lcd" into fld "lcd"
(edited to fix a missing quote)