diff --git a/guacamole-common-js/src/main/webapp/modules/Keyboard.js b/guacamole-common-js/src/main/webapp/modules/Keyboard.js
index <HASH>..<HASH> 100644
--- a/guacamole-common-js/src/main/webapp/modules/Keyboard.js
+++ b/guacamole-common-js/src/main/webapp/modules/Keyboard.js
@@ -781,7 +781,7 @@ Guacamole.Keyboard = function(element) {
                 keysym = keysym_from_charcode(next.charCode);
                 if (keysym) {
                     recentKeysym[first.keyCode] = keysym;
-                    first.defaultPrevented = !press_key(keysym);
+                    first.defaultPrevented = next.defaultPrevented = !press_key(keysym);
                     return eventLog.shift();
                 }
GUAC-<I>: Set defaultPrevented of keypress, not just keydown.