key generation backgrounds itself

so that the window can respond to user input