Description
⌨️ KeyStrokes Overlay With Lua
A high-FPS, deeply customizable keystrokes & mouse overlay mod for Minecraft Fabric (1.19.4 – 26.3), powered by native Dear ImGui and an embedded Lua theme & scripting engine.
✨ Key Features
- Native Dear ImGui Rendering (PvP-Optimized): Dirty-state mesh caching, zero-allocation buffers, and a 60Hz cap for animated themes deliver crisp TrueType typography and vector shapes with virtually zero FPS impact (
0ImGui/Lua CPU on idle frames, instant0 mskeypress latency). - Limitless Lua Theme Engine: Customize every key (
renderKey+renderGroupBackground) or build 100% freeform HUDs from scratch (onImGuiDraw) using rounded rectangles, multi-corner gradients, glows, drop shadows, circles, arcs, polygons, custom.png/.jpgimages, and custom.ttf/.otffonts. - 8 Built-in Themes:
default.lua,minimal_pvp.lua,cyber_neon.lua,frosted_glass.lua,rgb_wave.lua,vapor_wave.lua,retro_terminal.lua, andclassic.lua(stored inconfig/keystrokes/ThemeManager/, never overwritten once edited). - Live Hot-Reloading: Edit your
.luascripts while playing and click Reload Lua in settings to see changes immediately. - Floating Drag-to-Move Settings (
K): Drag keyboard and mouse overlays anywhere directly over the live game, switch between 6 built-in color presets (Green,Red,Pink,Purple,Crimson,Gold) or pick any custom active RGBA color, and scale smoothly. - 5 Keyboard Layouts + Full Mouse Overlay:
Full Keyboard,No NumPad,Horizontal Numbers,Vertical NumPad, andTryhard+LMB,MMB(with live scroll-wheel highlight),RMB,BWD,FWD, and live CPS counters.
🎮 Controls & Installation
- Install Fabric Loader and Fabric API for your Minecraft version (1.19.4 – 26.3).
- Drop the downloaded
.jarinto yourmodsfolder. - Press
Kin-game to open settings and drag the keyboard/mouse anywhere on screen. - Press
Zanytime to toggle the overlay on or off.
📜 Scripting Guide: Create Your Own Theme
Create any .lua file inside config/keystrokes/ThemeManager/ (put custom images in ThemeManager/assets/ and custom fonts in ThemeManager/fonts/).
Per-Key Theme Example (renderKey)
-- Save as "my_theme.lua" in config/keystrokes/ThemeManager/
ANIMATED = false -- Set true for continuous 60Hz animations
function renderKey(label, isPressed, x, y, w, h, r, g, b, a, ctx)
local accent = rgba(r, g, b, 255)
if isPressed then
drawGlow(x, y, w, h, 6, 5, withAlpha(accent, 170))
fillRounded(x, y, w, h, 6, rgba(r, g, b, 230))
setTextColor(rgba(12, 14, 18, 255))
else
fillRounded(x, y, w, h, 6, rgba(12, 14, 20, 175))
strokeRounded(x, y, w, h, 6, 1.2, withAlpha(accent, 180))
setTextColor(rgba(240, 244, 255, 240))
end
end
Available Lua API
- Hooks:
onThemeLoad(),onFrame(time, dt),renderGroupBackground(x, y, w, h, isMouse, r, g, b, a, time),renderKey(label, isPressed, x, y, w, h, r, g, b, a, ctx), and freeformonImGuiDraw(ctx)with theimguiglobal table. ctxfields:anim,time,dt,cps,lmbCps,rmbCps,isMouse,code,holdTime,releaseTime.- Primitives:
fill,fillGradient,fillGradientMulti,fillRounded,strokeRounded,fillPill,fillGradientRounded,drawGlow,drawShadow,fillCircle,strokeCircle,drawArc,drawLine,drawTriangle,drawPolygon,drawImage,drawText,drawCenteredText,drawSmoothText,measureText,suppressDefaultText(true). - Helpers:
rgba,rgb,hsv,withAlpha,lerp,clamp,lerpColor,easeOutCubic,easeOutBack,easeInOutSine.
💻 Source Code & Issues
Open source under the MIT License — browse the source or open an issue on GitLab.




