undo debug changes of commit 1af801e
die if sending a keypress fails
Merge pull request #75 from lnussel/master

undo debug changes of commit 1af801e