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.

Key Strokes Overlay with Lua Mod

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 renderKey and renderGroupBackground or draw freeform HUDs from scratch via onImGuiDraw using rounded shapes, gradients, glows, shadows, circles, arcs, polygons, custom .png or .jpg images, and custom .ttf or .otf fonts.
  • 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 .lua theme 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, MMB with 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, and Tryhard.
  • 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, and Gold, 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 freeform onImGuiDraw(ctx) using the global imgui table.
  • Context (ctx) Fields: anim, time, dt, cps, lmbCps, rmbCps, isMouse, code, holdTime, and releaseTime.
  • Drawing Primitives: fill, fillGradient, fillGradientMulti, fillRounded, strokeRounded, fillPill, fillGradientRounded, drawGlow, drawShadow, fillCircle, strokeCircle, drawArc, drawLine, drawTriangle, drawPolygon, drawImage, drawText, drawCenteredText, drawSmoothText, measureText, and suppressDefaultText(true).
  • Color and Math Helpers: rgba, rgb, hsv, withAlpha, lerp, clamp, lerpColor, easeOutCubic, easeOutBack, and easeInOutSine.

Configuration:

  • config/keystrokes/ThemeManager/: Folder storing the 8 built-in .lua themes plus any custom theme scripts you add.
  • ThemeManager/assets/: Folder for custom .png and .jpg images loaded by Lua themes via drawImage.
  • ThemeManager/fonts/: Folder for custom .ttf and .otf fonts used by your themes.
  • ANIMATED: Boolean flag at the top of a theme script (false by default; set to true for continuous 60Hz animations).

How to Use:

  1. Install the mod into your mods folder and launch your world.
  2. Press K in-game to open the floating settings menu directly over your live view.
  3. 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).
  4. Press Z at any time while playing to hide or show the overlay instantly.
  5. To create a custom theme, add a new .lua file inside config/keystrokes/ThemeManager/ (placing optional images in ThemeManager/assets/ and fonts in ThemeManager/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:

Key Strokes Overlay with Lua Mod Screenshot 1
Key Strokes Overlay with Lua Mod floating settings menu displaying live theme controls
Key Strokes Overlay with Lua Mod Screenshot 2
Compact Tryhard keyboard and mouse overlay tracking live clicks and scroll wheel highlights
Key Strokes Overlay with Lua Mod Screenshot 3
Full keyboard layout and mouse CPS counter rendered over gameplay with Dear ImGui
Key Strokes Overlay with Lua Mod Screenshot 4
Custom Lua visual theme styling rounded key indicators and active button highlights live

Key Strokes Overlay with Lua Mod Download Links

Filter by

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

Click to rate this post!
[Total: 0 Average: 0]
QUICK MINECRAFT SURVEY · ONE TAP
Mods & Modpacks

Have you ever used connector mods (like Sinytra Connector) to run Fabric mods on Forge/NeoForge?

30 responses · See the full results →