stdin -> fake keyboard events