Hi BEEN_Nath_58,
I recently ran into the same exact problem. This is apparently the case when the Legacy BIOS of your motherboard does not have proper PS/2 emulation for USB keyboards and mice. Well-behaved applications that access the keyboard using high-level INT 16h calls (including DOS itself) still work, but many applications (notably games) access the keyboard through lower level hardware access, which doesn't work when the motherboard doesn't properly emulate it. Go into your BIOS and see if you can find an option called "USB Legacy Support" (or something similar to that), and try enabling that if it's disabled.
If that doesn't work, then there is the keyboard driver that is part of @crazii's USBDDOS project.
However, it only works with older motherboards and laptops that have an UHCI or OHCI (companion) controller. That rules out most stuff that came out after 2009. The only workaround for that is to find an older USB 2.0 PCI card and install it into your system, and then use USBDDOS with that.
With the possible exception of the closed source (and no longer freeware) DOSUSB product, there are, to my knowledge, currently no such drivers that work with integrated USB 2.0 or USB 3.0 ports on anything that was released after 2009. At least not yet.
If your system has PS/2 ports, it might really be worth looking on-line for a cheap PS/2 keyboard, preferably a used one on an on-line marketplace somewhere. An alternative might be getting your hands on something like the USB4VC (or building one yourself if you have the skill and means), although such solution is really preferable for vintage hardware that lacks USB ports entirely.