remove temp files, and allow use of the arrow keys