- C# 79.1%
- Shell 9.7%
- PowerShell 8.1%
- Just 2.3%
- JavaScript 0.6%
- Other 0.2%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
|
All checks were successful
ci / verify (push) Successful in 7m48s
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. |
||
| .forgejo/workflows | ||
| .github/workflows | ||
| docs | ||
| guide-src | ||
| installer | ||
| scripts | ||
| src/LISSTech.KeyPaste | ||
| tests/LISSTech.KeyPaste.Tests | ||
| .editorconfig | ||
| .gitattributes | ||
| .gitignore | ||
| .pre-commit-config.yaml | ||
| AGENTS.md | ||
| CHANGELOG.md | ||
| Directory.Build.props | ||
| Directory.Packages.props | ||
| global.json | ||
| justfile | ||
| LICENSE | ||
| LISSTech.KeyPaste.slnx | ||
| NOTICE | ||
| package-lock.json | ||
| package.json | ||
| README.md | ||
| renovate.json | ||
| SECURITY.md | ||
“A small key can open a distant door.”
Dedicated to Elijah K.
⌨️ 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
- Product tour
- How it works
- Architecture
- Compatibility
- Install
- Use
- Settings
- Security boundaries
- Build and test
- Signed releases
- Repository map
- Documentation
- Contributing
- License
🚧 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
|
Fast command paletteA 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 controlsConfigure 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. |
|
🏁 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
- Press your hotkey.
- Paste or type text.
- Press Enter.
- Click the destination.
- 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.
- Open Releases.
- Download
LISSTech.KeyPaste-<version>-win-x64.msifor the guided installer, or the ZIP for a portable copy. - Verify
SHA256SUMS. - 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.
Light theme. |
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.26100for release signing - Optional:
just1.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:
- restores locked dependencies;
- verifies formatting;
- runs all tests;
- publishes a self-contained single-file
win-x64executable; - signs and timestamps it;
- verifies the complete Authenticode chain;
- builds and signs the WiX MSI;
- creates the release ZIP; and
- writes
SHA256SUMSfor 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
- Architecture and native-input lifecycle
- Release, signing, and publication operations
- Live landing page
- Security policy
- Release history
🤝 Contributing
- Create a focused branch.
- Keep clipboard text and target details out of logs and test fixtures.
- Add behavior tests for mapping or sequencing changes.
- Run
just ci. - 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.