class_docstr: :param recognize_paste: When True, try to discover paste actions and turn
      the event into a BracketedPaste.
class_docstr_tok: [":","param","recognize_paste",":","When","True",",","try","to","discover","paste","actions","and","turn","the","event","into","a","BracketedPaste","."]
docstr: Generator that yields `KeyPress` objects from the input records.
docstr_tok: ["Generator","that","yields","`","KeyPress","`","objects","from","the","input","records","."]
code: def _get_keys(self, read, input_records):
      """
      Generator that yields `KeyPress` objects from the input records.
      """
      for i in range(read.value):
          ir = input_records[i]
  
          # Get the right EventType from the EVENT_RECORD.
          # (For some reason the Windows console application 'cmder'
          # [http://gooseberrycreative.com/cmder/] can return '0' for
          # ir.EventType. -- Just ignore that.)
          if ir.EventType in EventTypes:
              ev = getattr(ir.Event, EventTypes[ir.EventType])
  
              # Process if this is a key event. (We also have mouse, menu and
              # focus events.)
              if type(ev) == KEY_EVENT_RECORD and ev.KeyDown:
                  for key_press in self._event_to_key_presses(ev):
                      yield key_press
  
              elif type(ev) == MOUSE_EVENT_RECORD:
                  for key_press in self._handle_mouse(ev):
                      yield key_press
  
imports: from __future__ import unicode_literals
  from ctypes import windll, pointer
  from ctypes.wintypes import DWORD, HANDLE
  from six.moves import range
  from prompt_toolkit.key_binding.input_processor import KeyPress
  from prompt_toolkit.keys import Keys
  from prompt_toolkit.mouse_events import MouseEventType
  from prompt_toolkit.win32_types import EventTypes, KEY_EVENT_RECORD, MOUSE_EVENT_RECORD, INPUT_RECORD, STD_INPUT_HANDLE
  import msvcrt
  import os
  import sys
  import six
label_desc: Use image node_id 4 for calling the ConsoleInputReader obj's underlying member method code with example usage: obj._get_keys(read, input_records) without return types