What happens if the old USB keyboard is not used at all?
If it works fine, I'd try another model USB keyboard.
Tech stuff, i have an HP Pavilion dv6 laptop from around 2012, with Windows 7. External keyboard is a Razer Blackwidow from 2011/2012.
Today I started having issues with my external keyboard. A few things happened so i'm unsure where to start with fixing it.
1. Plugging in the keyboard does not allow typing. Trying to use the external keyboard is not possible and it does not respond to input.
2. Clicking in textboxes and left clicking in general does not do what should be expected. Clicking in the address bar in chrome brings up the "Tell us what is happening" dialog box. In other windows, the keystrokes "&PO{UI" are spammed infinitely. In some cases, the cursor will rapidly alternate between the pointer and the symbol that resembles an uppercase "I".
3. The laptop keyboard becomes unusable.
Closing the laptop lid to return to the log-in screen fixes the issue. The issue is not present until the keyboard is plugged in. I've had the keyboard for years and never experienced these issues.
I have run a virus scan and that has turned up no issues. Other than prying off the keys and trying to clean the keyboard, is there anything else I could be doing?

Chowhound
Comic Vine
GameFAQs
GameSpot
Giant Bomb
TechRepublic