Greetings,
Welcome to the forum.
I am not a HP employee.
Please provide a specific product number. Can't determine the age of your PC using Envy 23.
You could have a power supply problem or motherboard component failure.
Disconnect any unnecessary peripherals. Try starting the PC with only a mouse and keyboard.
Try a different wired USB keyboard and mouse.
Regards