Updated code to do proper input key buffering.  Simultaneous key presses are now perfectly handled.