working advanced menus
diff --git a/extendedcommands.c b/extendedcommands.c
index 2acc0d6..36467b0 100644
--- a/extendedcommands.c
+++ b/extendedcommands.c
@@ -593,4 +593,40 @@
             show_nandroid_restore_menu();
             break;
     }
+}
+
+void show_advanced_menu()
+{
+    static char* headers[] = {  "Advanced and Debugging Menu",
+                                "",
+                                NULL
+    };
+
+    static char* list[] = { "Key Test",
+                            NULL
+    };
+
+    for (;;)
+    {
+        int chosen_item = get_menu_selection(headers, list, 0);
+        if (chosen_item == GO_BACK)
+            break;
+        switch (chosen_item)
+        {
+            case 0:
+            {
+                ui_print("Outputting key codes.\n");
+                ui_print("Go back to end debugging.\n");
+                int key;
+                int action;
+                do
+                {
+                    key = ui_wait_key();
+                    action = device_handle_key(key, 1);
+                    ui_print("Key: %d\n", key);
+                }
+                while (action != GO_BACK);
+            }
+        }
+    }
 }
\ No newline at end of file