def getraw(timeout=None):
 cs = []
 c = getch(timeout)
 while (c != None):
  cs.append(c)
  if (c == None):
   break
  c = getch()
 return cs

def getraw ( timeout = None ) : cs = [ ] c = getch ( timeout ) while ( c != None ) : cs . append ( c ) if ( c == None ) : break c = getch ( ) return cs
get list of raw key codes corresponding to zero or more key presses .