Only block keyup for keys where we have handled a keyup/press event

Fixes the issue of Vimium indiscriminately capturing keyup events,
introduced in PR #978.