title: Python program not responding when I run it
body: <p>Im making a roguelike in python using Libtcod.  When I run the code, the window pops up, drawing the symbol on the screen but the window then freezes.  It then says it is not responding.  I do not understand whats happening.  Here is the code:</p>
  
  <pre><code>import libtcodpy as libtcod;
  
  SCREEN_WIDTH = 80;
  SCREEN_HEIGHT = 50;
  LIMIT_FPS = 20;
  
  libtcod.console_set_custom_font('arial10x10.png', libtcod.FONT_TYPE_GREYSCALE | libtcod.FONT_LAYOUT_TCOD);
  
  libtcod.console_init_root(SCREEN_WIDTH, SCREEN_HEIGHT, 'Lets Crawl', False);
  
  libtcod.sys_set_fps(LIMIT_FPS);
  
  playerx = SCREEN_WIDTH/2;
  playery = SCREEN_HEIGHT/2;
  
  def handle_keys():
      global playerx, playery
  
      if libtcod.console_is_key_pressed(libtcod.KEY_UP):
          playery -= 1
  
      elif libtcod.console_is_key_pressed(libtcod.KEY_DOWN):
          playery += 1
  
      elif libtcod.console_is_key_pressed(libtcod.KEY_LEFT):
          playerx -= 1
  
      elif libtcod.console_is_key_pressed(libtcod.KEY_RIGHT):
          playerx += 1
  
  
  while not libtcod.console_is_window_closed():
      #libtcod.console_set_default_foreground(0, libtcod.white);
      libtcod.console_put_char(0, 1, 1, 'b');
      libtcod.console_flush();
  </code></pre>