 
     isBackspace = (event)->
       event.which == 8
+
+    isLetterA = (event)->
+      event.which == 65
 
     getOptions = (scope, attrs) ->
         options = angular.copy defaultOptions


                if isBackspace(event)
                  # get the string before the selection and figure out how many commas it has
                  originalCursorPosition = elem[0].selectionStart
                  stringAfterCursor = elem.val().slice(originalCursorPosition, elem.val().length)
                  elem.val resetCommas(stringAfterCursor) # reformat the number in place



    defaultOptions = smartNumberConfig.defaultOptions

    # 0 = tab, 8 = backspace , 13 = enter, 46 = delete, 37 = left arrow, 39 = right arrow, 65 = A
    controlKeys = [0,8,13, 46, 37, 39, 65] 

    # 37 = left arrow, 39 = right arrow, 9 = enter, 33 = page up, 34 = page down
    inertKeys = [37, 39, 9, 33, 34]
