terminal: uninstall keyboard on exit

This is useful for tast tests and users to be able to use Ctrl+W to
close a tab when an SSH connection is finished.

Bug: 1362418
Change-Id: Idc86f01a7e51506ca333f994241df8ed3b050d64
Reviewed-on: https://chromium-review.googlesource.com/c/apps/libapps/+/4001286
Reviewed-by: Jason Lin <lxj@google.com>
Tested-by: kokoro <noreply+kokoro@google.com>
diff --git a/terminal/js/terminal_emulator.js b/terminal/js/terminal_emulator.js
index bf59cc9..a72232e 100644
--- a/terminal/js/terminal_emulator.js
+++ b/terminal/js/terminal_emulator.js
@@ -588,6 +588,7 @@
         'setCursorColumn',
         'setCursorPosition',
         'setCursorVisible',
+        'uninstallKeyboard',
     ];
 
     for (const name of methodNames) {