# Unlock Screen action sending excess keystrokes

**URL:** <https://community.folivora.ai/t/unlock-screen-action-sending-excess-keystrokes/47662>\
**Category:** Configuration Help & General Discussion\
**Created:** [August 29, 2026, 10:18pm UTC](https://community.folivora.ai/t/unlock-screen-action-sending-excess-keystrokes/47662 "2026-08-29T22:18:27Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![pjv](https://community.folivora.ai/user_avatar/community.folivora.ai/pjv/32/18828_2.png) [@pjv](https://community.folivora.ai/u/pjv)\
**Post date:** [August 29, 2026, 10:18pm UTC](https://community.folivora.ai/t/unlock-screen-action-sending-excess-keystrokes/47662/1 "2026-08-29T22:18:27Z")

</div>

I use the Unlock Screen action in a named trigger and sometime in recent (one of the past several) updates of BTT, it has started

1. frequently failing to cleanly execute the passphrase keystrokes and so failing to unlock the screen
2. sending additional keystrokes after successfully unlocking the screen which then have the effect of causing strange things to happen in existing windows on the screen.

Is there anyone else using this action who has seen similar?

Is this reproducible on someone else's box or is it just me?

---

<div class="post-metadata">

**Author:** ![Andreas\_Hegenberg](https://community.folivora.ai/user_avatar/community.folivora.ai/andreas_hegenberg/32/39221_2.png) [@Andreas\_Hegenberg](https://community.folivora.ai/u/Andreas_Hegenberg)\
**Post date:** [August 30, 2026, 6:55pm UTC](https://community.folivora.ai/t/unlock-screen-action-sending-excess-keystrokes/47662/2 "2026-08-30T18:55:37Z")

</div>

which version of macOS are you on?  
(There haven't been changes to that action in since quite some time, but possibly newer macOS require some changes)

---

<div class="post-metadata">

**Author:** ![pjv](https://community.folivora.ai/user_avatar/community.folivora.ai/pjv/32/18828_2.png) [@pjv](https://community.folivora.ai/u/pjv)\
**Post date:** [August 31, 2026, 9:21am UTC](https://community.folivora.ai/t/unlock-screen-action-sending-excess-keystrokes/47662/3 "2026-08-31T09:21:57Z")

</div>

I'm on Sequoia 15.7.9 (Intel Imac Pro)

---

<div class="post-metadata">

**Author:** ![pjv](https://community.folivora.ai/user_avatar/community.folivora.ai/pjv/32/18828_2.png) [@pjv](https://community.folivora.ai/u/pjv)\
**Post date:** [September 24, 2026, 12:57pm UTC](https://community.folivora.ai/t/unlock-screen-action-sending-excess-keystrokes/47662/4 "2026-09-24T12:57:25Z")

</div>

just got a new mac studio (M5 ultra) running Golden Gate 27 and it’s even worse on this box. It fails every time to unlock the screen. And the way it fails (though i can’t see the actual characters that are being sent) makes me think a couple things:

1. it seems like it tries to send the password multiple times.
2. my passphrase for unlocking my box includes spaces and it seems like maybe under some conditions it’s only sending the characters up until the first space.

---

<div class="post-metadata">

**Author:** ![Andreas\_Hegenberg](https://community.folivora.ai/user_avatar/community.folivora.ai/andreas_hegenberg/32/39221_2.png) [@Andreas\_Hegenberg](https://community.folivora.ai/u/Andreas_Hegenberg)\
**Post date:** [September 24, 2026, 3:56pm UTC](https://community.folivora.ai/t/unlock-screen-action-sending-excess-keystrokes/47662/5 "2026-09-24T15:56:04Z")

</div>

It seems to work fine on my machine but I don't have spaces in my password. I'll check with spaces later!

What trigger are you using to execute the unlock action? Maybe some modifier key being held is causing issues?

---

<div class="post-metadata">

**Author:** ![pjv](https://community.folivora.ai/user_avatar/community.folivora.ai/pjv/32/18828_2.png) [@pjv](https://community.folivora.ai/u/pjv)\
**Post date:** [September 24, 2026, 4:31pm UTC](https://community.folivora.ai/t/unlock-screen-action-sending-excess-keystrokes/47662/6 "2026-09-24T16:31:05Z")

</div>

i have it in a named trigger that is executed via a BTT webhook.

---

<div class="post-metadata">

**Author:** ![pjv](https://community.folivora.ai/user_avatar/community.folivora.ai/pjv/32/18828_2.png) [@pjv](https://community.folivora.ai/u/pjv)\
**Post date:** [September 24, 2026, 6:22pm UTC](https://community.folivora.ai/t/unlock-screen-action-sending-excess-keystrokes/47662/7 "2026-09-24T18:22:40Z")

</div>

I've currently replaced the unlock action with this shell script action which is working well:

```auto
# Wake the display
caffeinate -u -t 1

# Wait 2 seconds for the screen to turn on
sleep 2

# Force focus onto the login window process and inject the password
osascript -e '
tell application "System Events"
    tell process "loginwindow"
        set frontmost to true
    end tell
    delay 0.5
    keystroke "YOUR_PASSWORD"
    key code 36
end tell'

```
