Your post is kind of confusing. So the computer just won't boot at all, right? Sounds like you have more of a problem than your keyboard and mouse. What kind of mouse and keyboard are these? PS/2 or USB? The specs indicate that that computer comes with a PS/2 keyboard and mouse, but just need to verify this is what you're still using.
Again, like I said, if it isn't booting past the HP Invent screen or giving you some kind of error message, the keyboard and mouse are most likely not the issue.