added key press event so when you start typing with the putty widget in focus it will give focus to the putty window