fix misuse of argparse with nargs=1
make sendKeys method work for mobile safari