diff --git a/frontend/src/components/ReauthModal.svelte b/frontend/src/components/ReauthModal.svelte
index b7cb2ad..09c31e5 100644
--- a/frontend/src/components/ReauthModal.svelte
+++ b/frontend/src/components/ReauthModal.svelte
@@ -1,5 +1,5 @@
{#if show}
-
-
e.stopPropagation()} role="dialog" aria-modal="true">
+
e.key === 'Escape' && handleClose()} role="presentation">
+
e.stopPropagation()} onkeydown={(e) => e.stopPropagation()} role="dialog" aria-modal="true" tabindex="-1">
{#if selectedUser}
-
-
e.stopPropagation()} role="dialog" aria-modal="true">
+
e.key === 'Escape' && closeUserDetail()} role="presentation">
+
e.stopPropagation()} onkeydown={(e) => e.stopPropagation()} role="dialog" aria-modal="true" tabindex="-1">