Key Strokes Overlay with Lua Mod (26.3, 1.20.1) – Build Custom PvP Key Themes
Key Strokes Overlay with Lua Mod displays a fast, customizable keyboard, mouse, and CPS HUD powered by native Dear ImGui and a built-in Lua scripting engine. It comes with 5 keyboard layouts, a full mouse panel with scroll-wheel highlights and live CPS counters, 8 editable built-in themes, and 6 color presets plus custom RGBA colors. Dirty-state mesh caching and zero-allocation buffers keep CPU usage at zero on idle frames with 0 ms keypress delay, so PvP gameplay stays smooth without FPS drops. Players press K in-game to drag overlays anywhere on screen, reload edited Lua scripts live, or write freeform custom HUDs with images and TrueType fonts.
![]()
Features:
- Native Dear ImGui Rendering: Uses dirty-state mesh caching, zero-allocation buffers, and a 60Hz cap for animated themes to render crisp TrueType fonts and vector shapes with zero ImGui or Lua CPU work on idle frames and 0 ms keypress latency.
- Full Lua Theme and HUD Engine: Lets you restyle every key with
renderKeyandrenderGroupBackgroundor draw freeform HUDs from scratch viaonImGuiDrawusing rounded shapes, gradients, glows, shadows, circles, arcs, polygons, custom.pngor.jpgimages, and custom.ttfor.otffonts. - 8 Built-in Editable Themes: Ships with eight ready-to-use themes stored in
config/keystrokes/ThemeManager/that are never overwritten once you edit them. - Live Hot-Reloading: Lets you edit any
.luatheme while the game is running and click Reload Lua in the settings panel to see updates right away. - Floating Drag-to-Move Settings: Opens directly over live gameplay with K so you can drag keyboard and mouse panels anywhere, scale the overlay smoothly, switch between 6 color presets (
Green,Red,Pink,Purple,Crimson,Gold), or pick any custom active RGBA color. - 5 Keyboard Layouts and Full Mouse Display: Covers five layout styles alongside mouse buttons (
LMB,MMBwith live scroll-wheel highlight,RMB,BWD,FWD) and real-time CPS counters. - Toggles the entire overlay on or off at any moment with Z.
Built-in Themes:
default.lua: Standard starter keystroke theme ready out of the box.minimal_pvp.lua: Clean, minimal layout tuned for competitive PvP visibility.cyber_neon.lua: Bright neon-styled overlay theme.frosted_glass.lua: Translucent frosted-glass style theme.rgb_wave.lua: Animated RGB color wave theme.vapor_wave.lua: Vaporwave-styled visual overlay theme.retro_terminal.lua: Classic terminal-inspired overlay look.classic.lua: Traditional keystrokes visual style.
Keyboard Layouts and Mouse Indicators:
- Keyboard Layouts: Switch between
Full Keyboard,No NumPad,Horizontal Numbers,Vertical NumPad, andTryhard. - Mouse Panel: Tracks
LMB,MMB(with live scroll-wheel highlight),RMB,BWD,FWD, and live CPS counters. - Color Presets: Choose from
Green,Red,Pink,Purple,Crimson, andGold, or set any custom active RGBA shade.
Lua Scripting 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)using the globalimguitable. - Context (
ctx) Fields:anim,time,dt,cps,lmbCps,rmbCps,isMouse,code,holdTime, andreleaseTime. - Drawing Primitives:
fill,fillGradient,fillGradientMulti,fillRounded,strokeRounded,fillPill,fillGradientRounded,drawGlow,drawShadow,fillCircle,strokeCircle,drawArc,drawLine,drawTriangle,drawPolygon,drawImage,drawText,drawCenteredText,drawSmoothText,measureText, andsuppressDefaultText(true). - Color and Math Helpers:
rgba,rgb,hsv,withAlpha,lerp,clamp,lerpColor,easeOutCubic,easeOutBack, andeaseInOutSine.
Configuration:
config/keystrokes/ThemeManager/: Folder storing the 8 built-in.luathemes plus any custom theme scripts you add.ThemeManager/assets/: Folder for custom.pngand.jpgimages loaded by Lua themes viadrawImage.ThemeManager/fonts/: Folder for custom.ttfand.otffonts used by your themes.ANIMATED: Boolean flag at the top of a theme script (falseby default; set totruefor continuous 60Hz animations).
How to Use:
- Install the mod into your
modsfolder and launch your world. - Press K in-game to open the floating settings menu directly over your live view.
- Drag the keyboard and mouse panels anywhere on screen, pick one of the 5 keyboard layouts, adjust scale, and select a built-in theme or color preset (or a custom RGBA color).
- Press Z at any time while playing to hide or show the overlay instantly.
- To create a custom theme, add a new
.luafile insideconfig/keystrokes/ThemeManager/(placing optional images inThemeManager/assets/and fonts inThemeManager/fonts/), then click Reload Lua in the K menu to preview edits live.
-- 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
Screenshots:




How to Install:
New to Minecraft? Follow our step-by-step guide to install Mods on your PC.View Guide
Requirements:
Key Strokes Overlay with Lua Mod Download Links
For Minecraft 26.3
For Minecraft 26.2
For Minecraft 26.1.2, 26.1.1, 26.1
For Minecraft 1.21.11
For Minecraft 1.21.10, 1.21.9
For Minecraft 1.21.8, 1.21.7, 1.21.6
For Minecraft 1.21.5
For Minecraft 1.21.4, 1.21.3, 1.21.2
For Minecraft 1.21.1, 1.21
For Minecraft 1.20.1, 1.20
Have you ever used connector mods (like Sinytra Connector) to run Fabric mods on Forge/NeoForge?
30 responses · See the full results →
0





















This post has no comments yet. Be the first — your comment will appear here.