patched keyboard capture plugin to remember pressed keys