…per Tool using keyboard shortcut. Fixes madrobby/keymaster#16.
It also affects shortcuts which will pop up new window, such as Save As (Ctrl+S),
but not New Tab (Ctrl+T).
The keyup event has never been sent to clearModifier(), therefore the
state is still true, it won't get cleared.
This is an ugly fix.