patched keyboard capture plugin to remember pressed keys

I'm totally new and absolutely lost to and in GIT. If this reaches anybody outside my own repo, please ignore the pull request -_-'