Need helping putting an onKeyPress function into code for calculator project

Need helping putting an onKeyPress function into code for calculator project
0

#1

As the title states, I’m trying to put an onKeyPress function into my calculator code so when I hit enter on my num. pad it returns the value of w/e math is being done.