Guide

Make a Keystrokes and CPS Display Mod for Minecraft (Fabric)

By Modable · Updated

Modable is an AI Minecraft mod generator: describe a mod in plain English and get a working Fabric .jar. Free trial: 1 free build, no card.

Short answer

A keystrokes and CPS display shows the keys you press and how fast you click, right on your screen. You can describe the layout in plain English and Modable builds it as a Fabric mod.

It is a popular HUD for PvP players and for people who record videos. It only shows what you press. It does not press anything for you.

What are keystrokes and CPS displays?

Keystrokes are small boxes on screen for W, A, S and D, the space bar and the mouse buttons. A box lights up when you press that key. Viewers of your video can see what you are doing.

CPS means clicks per second. It is a number that shows how fast you click your left and right mouse buttons.

Both are HUD items. A HUD is anything drawn on your screen while you play. Modable can make HUDs.

How do I ask for the layout of the keys?

Say where the display goes and what it holds. Be clear about each part:

  • Corner. "Bottom right."
  • Keys. "W, A, S, D and the space bar."
  • Shape. "Small square boxes. W on top, A S D in a row below, space bar under them."
  • Lit up. "A box turns lighter when I press the key."
  • Size. "Small."

Here is a layout you can copy: "Keystrokes display in the bottom right: W, A, S, D and the space bar as small boxes that light up when I press them."

You can also ask for sneak and sprint keys if you want them.

How do I show left and right click CPS?

Ask for the numbers and say where they go:

  • "Show my left click and right click CPS under the keys."
  • "Update it every half second."
  • "Show it as two small boxes labelled LMB and RMB."

An update rate matters. If the number changes too fast, it is hard to read. Half a second is a good start. You can change it with a follow-up.

How do I change the colours, size and see-through look?

Say what you see in your head:

  • "Dark and see-through boxes with white text."
  • "Boxes turn white when I press a key."
  • "Only show the boxes when I press a key, and fade out after one second."
  • "Make everything a bit smaller."

Keep colours simple. Dark boxes with light text are easy to read on most backgrounds. If your game has a bright sky, test it there too.

Can I add FPS and ping next to it?

Yes, you can ask for them in the same prompt. FPS means frames per second, a number that shows how smooth your game runs. Ping shows how fast your connection to a server is.

Try: "Add FPS and ping in the top left in small text, next to the keystrokes."

It is a good idea to keep the screen clean. Too many numbers make it hard to see the game. Start with the keys and CPS, then add FPS and ping with a follow-up.

Does a keystrokes display change how I play? (it only shows info)

No. It only shows information. It shows the keys you pressed and the click speed you already had. It does not click faster, aim for you or change the game.

This is a display mod. We do not help with mods that click for you, aim for you or get around a server's anti-cheat. Many servers allow simple HUDs like this one, but rules differ. If you are not sure, read the server's rules or ask an admin before you join.

How do I move it or change the keybind later?

Use follow-ups. A follow-up is a new message in the same chat. Ask for one thing at a time:

  • "Move the keystrokes to the bottom left."
  • "Make the CPS numbers bigger."
  • "Press K to hide or show the display."
  • "Change the colour when I press a key to green."

Test each change in a world. The free trial gives you 1 build, your first mod, and each change is one more build, so use them for the changes you want most. On paid plans each change is one build from your monthly builds.

Try this prompt

“Keystrokes display in the bottom right: W, A, S, D and the space bar as small boxes that light up when I press them.”
“Show my left click and right click CPS under the keys. Update it every half second.”
“Make the key boxes dark and see-through, with white text. Only show them when I press a key.”
“Add FPS and ping in the top left in small text, next to the keystrokes.”

What works well / what doesn't

What works well

  • A clear layout with a corner, keys and size.
  • Simple colours that are easy to read.
  • Adding FPS and ping after the first version works.
  • One change at a time.

What doesn't work well

  • Too many numbers on the screen at once.
  • Asking for a full custom game client in one prompt. Start with this one display. For the bigger idea, read how to make your own Minecraft client.
  • Anything that clicks or aims for you.

A HUD mod only runs in your own game, so it skips the test-server start; Modable checks that it builds, and on Medium and Max builds for 1.21.1, 1.21.11 and 26.3 it also opens it in the real Minecraft client. That does not guarantee it is perfect, so test it yourself. See our guide on HUD mods for more ideas.

How to install it

The easiest way is the free Modrinth App. It sets up Fabric and Fabric API for you. Modable is not affiliated with Modrinth.

  1. Get the free Modrinth App (modrinth.com/app) and click Sign in to Minecraft.
  2. In Modable, press Download Modrinth pack under your mod's reply. You get a file that ends in .mrpack.
  3. In Modrinth App, click the + icon and choose Upload a modpack. Pick your file. If you see an "Unknown files warning", click Install anyway. It shows for any mod that is not on Modrinth.
  4. Open the new instance in your Library and press Play.

Want the full steps? Read How to install Fabric mods.

Which Minecraft version?

Pick the Minecraft version you play under the chat box. Modable builds for Minecraft Java Edition 1.18.1 to 26.3. The mod only works on the version it was built for. See the list of versions.

Modable makes Fabric mods only. It does not make Forge, NeoForge or Bedrock mods. Mods are for personal use.

Make your display

Make it free on Modable: your first build is free, no card.

Pick your Minecraft version: 1.21.1, 1.20.1, 26.2. Modable makes Fabric mods for 1.18.1 to 26.3.

More guides

All guides