You need to designate physical keys for the 'backspace' and 'enter' operations and then carry out the corresponding operation when that key is pressed. For example you could implement 'backspace' by undoing the last digit entry and redisplaying the current accumulated value.