read keayboard using cmd