diff --git a/html/js/app.js b/html/js/app.js
index 0de33dbc..b2d97d85 100644
--- a/html/js/app.js
+++ b/html/js/app.js
@@ -46,6 +46,13 @@
name : name
});
+
+ document.onkeyup = function (key) {
+ if (key.which == 27) { // Escape key
+ $.post('http://' + ESX_MENU.ResourceName + '/menu_cancel', JSON.stringify(data));
+ }
+ };
+
ESX_MENU.render();
}