Fix issue of keyboard copy/paste not working on previously entered commands.