1st implementation: send keys and select window