DRY: Refactors keypad buttons into directive
DRY: created functional errorToDetect
Clicking keypad buttons won't lose caret position and focus