Physical scan-code paste for remote PCs. https://keypaste.clfy-a.lissonline.com/
  • C# 79.1%
  • Shell 9.7%
  • PowerShell 8.1%
  • Just 2.3%
  • JavaScript 0.6%
  • Other 0.2%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Marcin Wisniowski 67d846a13a
All checks were successful
ci / verify (push) Successful in 7m48s
feat(macos): add SwiftPM build pipeline (macos-check, macos-build, macos-test, macos-run, macos-package, macos-sign)
macOS build pipeline via SwiftPM on CLT-only environment (no full Xcode).
- justfile: 6 bash-shebang recipes overriding global pwsh shell
- scripts/macos-check.sh: strict prereq validation (swift, xcrun SDK, pwsh, source) then build+test gate
- scripts/macos-build.sh: dual-arch swift build + lipo -create universal binary
- scripts/macos-test.sh: swift test --configuration release
- scripts/macos-run.sh: open KeyPasteMac-Unsigned.app
- scripts/macos-package.sh: assemble .Unsigned.app bundle, plutil version injection
- scripts/macos-sign.sh: codesign + notarytool JSON + stapler + DMG + SHA256SUMS
- .gitignore: .build/, DerivedData/, *.xcodeproj/, .DS_Store, artifacts/macos/

Signing requires MACOS_SIGNING_IDENTITY and MACOS_NOTARY_PROFILE env vars.
pwsh resolved via login-shell (bash -l -c) for PATH including /usr/local/bin.
CLT tools (notarytool via xcrun, create-dmg via login-shell) added to PATH.
2026-10-06 23:00:17 -04:00
.forgejo/workflows Release LISSTech KeyPaste 26.10.11 2026-10-04 21:17:02 -04:00
.github/workflows Release LISSTech KeyPaste 26.10.8 2026-10-04 20:36:59 -04:00
docs fix: keep Settings compact on wide monitors 2026-10-06 21:30:33 -04:00
guide-src fix: keep Settings compact on wide monitors 2026-10-06 21:30:33 -04:00
installer Release LISSTech KeyPaste 26.10.13 2026-10-05 22:31:19 -04:00
scripts feat(macos): add SwiftPM build pipeline (macos-check, macos-build, macos-test, macos-run, macos-package, macos-sign) 2026-10-06 23:00:17 -04:00
src/LISSTech.KeyPaste fix: keep Settings compact on wide monitors 2026-10-06 21:30:33 -04:00
tests/LISSTech.KeyPaste.Tests fix: keep Settings compact on wide monitors 2026-10-06 21:30:33 -04:00
.editorconfig feat: launch LISSTech KeyPaste 2026-09-26 11:27:05 -04:00
.gitattributes feat: launch LISSTech KeyPaste 2026-09-26 11:27:05 -04:00
.gitignore feat(macos): add SwiftPM build pipeline (macos-check, macos-build, macos-test, macos-run, macos-package, macos-sign) 2026-10-06 23:00:17 -04:00
.pre-commit-config.yaml KeyPaste palette redraw fix and Windows installer 2026-09-28 03:36:30 +00:00
AGENTS.md Add AGENTS.md: just is the dev/deploy oracle 2026-10-01 17:36:11 -04:00
CHANGELOG.md fix: keep Settings compact on wide monitors 2026-10-06 21:30:33 -04:00
Directory.Build.props KeyPaste palette redraw fix and Windows installer 2026-09-28 03:36:30 +00:00
Directory.Packages.props fix: suppress installer console flash, restore illustrated end dialog, load landing page font 2026-09-29 17:33:18 -04:00
global.json feat: launch LISSTech KeyPaste 2026-09-26 11:27:05 -04:00
justfile feat(macos): add SwiftPM build pipeline (macos-check, macos-build, macos-test, macos-run, macos-package, macos-sign) 2026-10-06 23:00:17 -04:00
LICENSE feat: launch LISSTech KeyPaste 2026-09-26 11:27:05 -04:00
LISSTech.KeyPaste.slnx feat: launch LISSTech KeyPaste 2026-09-26 11:27:05 -04:00
NOTICE Release LISSTech KeyPaste 26.10.13 2026-10-05 22:31:19 -04:00
package-lock.json infra: add Refresh-Locks.ps1 and Update-NpmPackages.ps1 scripts, update CHANGELOG for v26.10.5 2026-10-04 20:16:14 -04:00
package.json docs: restore classic branding and add VitePress guide 2026-09-29 03:57:58 +00:00
README.md fix: keep Settings compact on wide monitors 2026-10-06 21:30:33 -04:00
renovate.json KeyPaste palette redraw fix and Windows installer 2026-09-28 03:36:30 +00:00
SECURITY.md fix: real multi-click detection, elevated-by-default startup, installer checkbox background 2026-09-29 15:13:49 -04:00

KeyPaste — Paste fails. Typing works.

“A small key can open a distant door.”
Dedicated to Elijah K.

Forgejo CI Windows 10 and 11 .NET 10 Authenticode signed releases Apache 2.0

⌨️ LISSTech KeyPaste

Clipboard blocked? Type it anyway.

KeyPaste turns text into layout-aware physical scan-code transitions for Windows remote and virtual consoles that refuse normal paste.

🌐 Landing page · 📦 Latest release · 🛡️ Security · 🧭 Changelog

Tip

Press the global shortcut, paste or type into the command palette, press Enter, then click the destination. KeyPaste handles the rest.

Important

KeyPaste stays local. Submitted text is held only in memory and is never written to settings, logs, telemetry, or a network service.


🧭 Table of contents


🚧 Why KeyPaste

Remote consoles often block Ctrl+V, clipboard redirection, Unicode VK_PACKET, or synthetic text APIs. The result is familiar: a password, recovery key, command, or path is on your clipboard—but the destination accepts only physical-looking keyboard input.

KeyPaste uses the active Windows keyboard layout to translate confirmed text into:

Stage KeyPaste behavior
Preflight Validates the complete string before sending a single key
Mapping Resolves characters through the active foreground keyboard layout
Input Emits explicit scan-code key-down, hold, key-up, and modifier transitions
Targeting Uses a pass-through low-level mouse hook, with host button polling as a Hyper-V fallback
Privacy Keeps text in memory; never logs or persists it

No clipboard forwarding. No guest agent. No target-specific plugin.


✨ Product tour

KeyPaste command palette with syntax-colored text

Fast command palette

A PowerToys Run–inspired surface with adaptive Fluent styling, a centered caret, Cascadia/Consolas monospace text, red digits, and blue symbols. The current clipboard text is ready to submit; begin typing to replace it.

Enter arms · Shift+Enter adds a line · Esc cancels.

Deliberate controls

Configure the shortcut, targeting mode, key timing, click delay, and timeout without fighting legacy Win32 widgets.

Adaptive light/dark palette, custom segmented controls, Lucide section icons, themed − / + steppers, high-DPI artwork, and a compact notification-area menu.

Below: isolated UI previews of the same settings window in the light and dark app themes.

Top: light theme — the standard Windows app appearance.
Bottom: dark theme — the same controls in your Windows colors.

KeyPaste settings window in the light theme, with Activation, Paste behavior, and Paste limits sections and large minus and plus steppers
The same KeyPaste settings window in the dark theme, with themed stepper buttons and a dark scrollbar

🏁 How it works

sequenceDiagram
    autonumber
    actor User
    participant Palette as KeyPaste palette
    participant Hook as Target monitor
    participant Mapper as Layout mapper
    participant Win32 as SendInput
    participant Target as RDP / Hyper-V / VMware

    User->>Palette: Press global shortcut
    User->>Palette: Paste or type text
    User->>Palette: Enter
    Palette->>Hook: Arm mouse-up + Escape hooks
    Note over Hook: Non-activating hint follows pointer
    User->>Target: Click destination
    Hook-->>Palette: Pass click through + report release
    Palette->>Mapper: Validate complete text
    Mapper->>Win32: Build timed scan-code sequence
    Win32->>Target: Physical key transitions
    Target-->>User: Exact text appears

The five-second version

  1. Press your hotkey.
  2. Paste or type text.
  3. Press Enter.
  4. Click the destination.
  5. Done.

🧱 Architecture

flowchart LR
    Hotkey["⌨️ Global hotkey"] --> Palette["✨ Fluent command palette"]
    Tray["📍 Notification-area menu"] --> Palette
    Palette --> Memory["🔒 In-memory text"]
    Memory --> Monitor["🖱️ Pass-through target hooks"]
    Monitor --> Layout["🗺️ Active keyboard layout"]
    Layout --> Planner["🧮 Scan-code planner"]
    Planner --> Sender["⚡ Timed SendInput engine"]
    Sender --> RDP["Remote Desktop"]
    Sender --> HyperV["Hyper-V VMConnect"]
    Sender --> VMware["VMware console"]
    Sender --> Support["Remote-support viewers"]

    classDef ui fill:#e8f2ff,stroke:#0067b8,color:#10233f;
    classDef core fill:#fff4f3,stroke:#c8102e,color:#3b1015;
    classDef target fill:#f3f4f6,stroke:#374151,color:#111827;
    class Hotkey,Tray,Palette ui;
    class Memory,Monitor,Layout,Planner,Sender core;
    class RDP,HyperV,VMware,Support target;

Design invariants

  • Validate first; never type a partial unsupported string.
  • Pass target clicks through unchanged.
  • Release every hook and modifier on success, timeout, cancellation, and failure.
  • Self-elevate through the normal Windows UAC prompt by default; switch to running as the signed-in user in Settings or on the installer's startup page.
  • Never log text, screenshots, target details, or credentials.

🖥️ Compatibility

Surface Status Notes
Microsoft Remote Desktop / Windows App ✅ Physical scan-code path
Hyper-V VMConnect ✅ Basic and Enhanced Session tested
VMware console ✅ Works where clipboard paste is blocked
Native remote-support viewers ✅ Viewer policy can still reject synthetic input
Browser-based consoles ✅ Requires the browser to accept host keyboard events
Windows sign-in fields ✅ When exposed through an ordinary remote console
UAC secure desktop ❌ Intentionally outside the process integrity boundary
BitLocker / firmware / pre-boot UI ❌ Not reachable through ordinary Windows SendInput
Higher-integrity target ✅ Runs elevated by default; approve one UAC prompt

📦 Install

Signed release

The current signed release is v26.10.16, including the compact Settings-width fix.

  1. Open Releases.
  2. Download LISSTech.KeyPaste-<version>-win-x64.msi for the guided installer, or the ZIP for a portable copy.
  3. Verify SHA256SUMS.
  4. Run the MSI, choose whether KeyPaste starts when users sign in and whether it runs as administrator, and approve the UAC prompt. Leave Launch KeyPaste selected on the final page to start it immediately. For the ZIP, extract and run LISSTech.KeyPaste.exe.

The release is self-contained: the target workstation does not need a preinstalled .NET runtime. The MSI installs under C:\Program Files\LISS Technologies\LISSTech KeyPaste. User settings live in %APPDATA%\LISS Technologies\LISSTech KeyPaste; the application never persists pasted text.

Trust

Production executables are:

  • Authenticode-signed by LISS Consulting Corp.
  • backed by an Entrust EV Code Signing certificate;
  • SHA-256 signed;
  • RFC 3161 timestamped through DigiCert; and
  • verified with Windows Authenticode policy before packaging.

🚀 Use

Palette

Input Action
Configured global shortcut Open KeyPaste
Palette opens Prefill and select the current clipboard text with leading and trailing whitespace removed; internal whitespace including newlines is preserved; typing replaces the selection
Ctrl+V Paste different text into the palette
Enter Arm target selection
Shift+Enter Insert a newline
Clicks to fire (setting) Wait for a real double-, triple-, or quadruple-click (2–4) on the target, or a single click (1)
Esc Cancel without typing
Left-button release Select target and begin typing

Notification-area icon

  • Double-click: open settings
  • Right-click → Open KeyPaste: open the palette
  • Right-click → Settings: configure behavior
  • Right-click → Exit: unregister the hotkey and stop

⚙️ Settings

Settings live at:

%APPDATA%\LISS Technologies\LISSTech KeyPaste\settings.json

Settings belong to the signed-in user. Shared runtime data, if needed, belongs under %ProgramData%\LISS Technologies\LISSTech KeyPaste.

Setting Purpose
Global shortcut System-wide palette activation
Click target Arm, follow the pointer, then type after click-release
Focused window Type into the window restored after the palette closes
Key delay Hold/gap timing for slow remote input transports
After click Wait after target selection before typing
Arm timeout Cancel target selection if no target is chosen within 5–120 seconds (default 30)
Clicks to fire Require a real double-, triple-, or quadruple-click gesture before the final paste trigger
Max characters Block submit when the palette text exceeds the cap (default 5,000; 0 disables)
Max duration Cancel the typing phase after N wall-clock seconds (default 30; 0 disables)
Start when I sign in Enable or disable startup for the signed-in user
Run as administrator Request UAC on normal launches when enabled; use a highest-privilege Task Scheduler task for sign-in startup

The Settings window opens compact rather than matching the monitor's width. Its 600px logical minimum width scales with DPI and is capped only on smaller displays; moving back to a larger display restores that minimum. Height is content-sized and capped by the monitor's working area. The window can be resized or minimized. On shorter displays, scroll the settings pane to reach the lower controls; Save and Cancel stay visible at the bottom. The taskbar button uses the KeyPaste icon. Numeric fields include large − / + steppers with Lucide icons, plus direct entry and keyboard Up/Down adjustment within their supported ranges. Sections carry Lucide icons, and the window follows the Windows app theme — including the steppers and the scrollbar — when it opens.

KeyPaste settings window in the light theme, showing Activation, Paste behavior, and Paste limits with large stepper buttons
Light theme.
KeyPaste settings window in the dark theme, showing the same sections with themed stepper buttons
Dark theme.

🛡️ Security boundaries

flowchart TB
    subgraph OrdinaryUser["Ordinary user session"]
        UI["Palette + settings"]
        Buffer["Ephemeral text buffer"]
        Hooks["Mouse-up / Escape hooks"]
        Input["Scan-code sender"]
        UI --> Buffer --> Hooks --> Input
    end

    Input -. blocked .-> SecureDesktop["UAC secure desktop"]
    Input -. blocked .-> HigherIntegrity["Higher-integrity processes"]
    Input --> SameIntegrity["Same-integrity local / remote console"]
  • No network client exists in the application.
  • No telemetry SDK is referenced.
  • Clipboard contents and submitted text are never persisted.
  • Low-level hooks observe only left-button release and Escape while armed.
  • Hooks always call CallNextHookEx; KeyPaste never swallows the user's click.
  • See SECURITY.md for private vulnerability reporting.

🧪 Build and test

Requirements

  • Windows 10 or 11
  • .NET SDK 10.0.401
  • Windows SDK 10.0.26100 for release signing
  • Optional: just 1.58+
just ci

Equivalent commands:

dotnet restore LISSTech.KeyPaste.slnx
dotnet format LISSTech.KeyPaste.slnx --verify-no-changes --no-restore
dotnet build LISSTech.KeyPaste.slnx --configuration Release --no-restore
dotnet test LISSTech.KeyPaste.slnx --configuration Release --no-build

The test suite covers settings normalization and persistence, hotkey validation, CRLF handling, Caps Lock compensation, Unicode rejection, physical modifier ordering, and native INPUT ABI size.

Use just check for the locked restore, format verification, Release build, and tests. just format applies formatting. just hooks installs the pre-commit checks and pre-push build, test, and secret scan (requires pre-commit and gitleaks). The developer workflow also covers dependency updates, vulnerability audits, and supply-chain checks.


✍️ Signed releases

Unsigned local candidate:

./scripts/Build-Release.ps1

Production-signed package:

./scripts/Build-Release.ps1 -Sign

The release pipeline:

  1. restores locked dependencies;
  2. verifies formatting;
  3. runs all tests;
  4. publishes a self-contained single-file win-x64 executable;
  5. signs and timestamps it;
  6. verifies the complete Authenticode chain;
  7. builds and signs the WiX MSI;
  8. creates the release ZIP; and
  9. writes SHA256SUMS for both artifacts.

The EV private key remains on its hardware token. CI intentionally creates unsigned candidates.

Versions follow DrainCtl’s commit-derived CalVer: YY.M.BUILD. The month comes from the commit date and BUILD starts at zero for the first commit of that month. Run just version on the exact release commit, tag it v<version>, then build from that tag with a complete git history. See release operations.


🗂️ Repository map

.
├── src/LISSTech.KeyPaste/          # WinForms application and native input engine
│   ├── Models/                     # Immutable user configuration
│   ├── Native/                     # Win32 ABI declarations
│   ├── Services/                   # Mapping, hooks, input, persistence
│   └── UI/                         # Fluent palette, settings, hint, menu renderer
├── tests/LISSTech.KeyPaste.Tests/  # Deterministic behavior tests
├── docs/                           # Static landing page and artwork
├── scripts/Build-Release.ps1       # Verify, publish, sign, package
├── .forgejo/workflows/             # Forgejo CI and Pages publication
└── justfile                        # Repeatable developer entry points

📚 Documentation


🤝 Contributing

  1. Create a focused branch.
  2. Keep clipboard text and target details out of logs and test fixtures.
  3. Add behavior tests for mapping or sequencing changes.
  4. Run just ci.
  5. Open a pull request with observed Windows verification.

Issues and pull requests are welcome on the internal Forgejo repository.


📜 License

Copyright © 2026 LISS Consulting Corp.

Licensed under the Apache License 2.0. LISSTech names and artwork remain trademarks of LISS Consulting Corp.; Apache 2.0 does not grant trademark rights.

Built for operators who need the text to land exactly where they clicked.

🌐 lisstech.com