If that's the problem, then it's quite similar to bug 12647, and the solution used there might be more robust. kbd_mode, unlike stty, doesn't rely on the terminfo database, which may be beneficial since we're running with only cached files available.
-- No response to keyboard input at prompt after ejecting CD-ROM https://launchpad.net/bugs/58503 -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs