Added the ability to press keys in a window of choice