If your keyboard keys stop working, it doesn't necessarily mean they're broken or need replacement. From checking keyboard ...
If your mouse and keyboard are not working in Hyper-V, follow the solutions mentioned below. Install or Update Hyper-V Integration Services Check and Update Drivers Turn off Enhanced Session mode ...