That code is not set up for keyboard input - it works by "validating" inputs very simply:
if the textbox currently is an operator, then replace it with the digit. Otherwise, add the digit to it.
That's not necessarily a good "starter" for a keyboard input calculator: I'd want to type
12+14=
and have the expression parsed afterwards, which isn't possible with the code you have at the moment. I'd want to delete stuff as well when I made in input mistake. I'd also expect this to work:
2+3*4=
And it should give me 14, not 20. Your whole system at the moment doesn't allow for that. (And it's pretty badly written: you only need one handler for all ten number buttons, and the code can be a lot simpler as well.)
It depends on exactly what your homework assignment is asking for, but I'd suggest that you let the user enter what he wants, and then parse it into an expression before evaluating it: the simplest method to do that is to "tokenize" the input string (convert it into a set of Operator and Operand values) and then evaluate the operators via a stacking system.