Or, if you use a desktop, build your own custom keyboard such that there is no hardware benchmark to work off of. Or use a keyboard which has a different key arrangement that alters the timing and press force of keystrokes, such as Dvorak.
Even better if you have a buckling spring or beamspring keyboard, where each individual key can produce a distinctly different sound profile depending on how they are pressed.
Plus, password managers provide a keyboard-free manner of inputting passwords. Why we don’t have 100% usage of high-quality password managers like 1Password or BitWarden is beyond me… it truly is worlds easier than trying to remember passwords, and infinitely more secure if you use thoroughly random passwords that are at least 32 characters (or whatever the max is for the service you are logging into).
Nothing comes even close to bulletproof, but a lot can make things quite difficult at the far end.