pinentry-gtk-2 can occasionally get stuck in interactions with some window
managers where the keyboard input no longer works. It looks like grabbing the
pointer as well as the keyboard would probably prevent this.
For more details and examples, please see: https://bugs.debian.org/831626