bug fixes plus change to asynch keydown with setTimeout handler for everything