class_docstr: Key press event, delivered to key bindings.
  
  :param input_processor_ref: Weak reference to the `InputProcessor`.
  :param arg: Repetition argument.
  :param key_sequence: List of `KeyPress` instances.
  :param previouskey_sequence: Previous list of `KeyPress` instances.
  :param is_repeat: True when the previous event was delivered to the same handler.
class_docstr_tok: ["Key","press","event",",","delivered","to","key","bindings",".",":","param","input_processor_ref",":","Weak","reference","to","the","`","InputProcessor","`",".",":","param","arg",":","Repetition","argument",".",":","param","key_sequence",":","List","of","`","KeyPress","`","instances",".",":","param","previouskey_sequence",":","Previous","list","of","`","KeyPress","`","instances",".",":","param","is_repeat",":","True","when","the","previous","event","was","delivered","to","the","same","handler","."]
docstr: Repetition argument.
docstr_tok: ["Repetition","argument","."]
code: def arg(self):
      """
      Repetition argument.
      """
      if self._arg == "-":
          return -1
  
      result = int(self._arg or 1)
  
      # Don't exceed a million.
      if int(result) >= 1000000:
          result = 1
  
      return result
  
imports: from __future__ import unicode_literals
  from prompt_toolkit.buffer import EditReadOnlyBuffer
  from prompt_toolkit.filters.cli import ViNavigationMode
  from prompt_toolkit.keys import Keys, Key
  from prompt_toolkit.utils import Event
  from .registry import BaseRegistry
  from collections import deque
  from six.moves import range
  import weakref
  import six
label_desc: Use image node_id 7 for calling the KeyPressEvent obj's underlying member method code with example usage: obj.arg() and returns: result, unknown