add support for pause keypress
Merge pull request #2 from tverlaan/master

add support for pause keypress