As far as I know you can probably steal the keyboard back with a sysrequest command (although I don't know how far its scope reaches):
Press these keys together: Alt Sysreq R
Or: Alt Shift PrtSc R
More info about this:
This is the list of systemrequest commands:
The magic SysRq key is a key combination understood by the Linux kernel, which allows the user to perform various low-level commands regardless of the system's state. It is often used to recover from freezes, or to reboot a computer without corrupting the filesystem. Its effect is similar to the computer's hardware reset button (or power switch) but with many more options and much more control.
This key combination provides access to features for disaster recovery. In this sense, it can be con...
And getting it to work in debian/ubuntu:
debian, kernel, reboot
Also this:
https://www.debian.org/doc/manuals/securing-debian-manual/restrict-sysrq.it.html
4 Likes