added simple keyboard control