First, you search with the brand and model on google
+linux +hp +keyboard1
It should turn up something.
Normally, if the keyboard is fully recognized, it's just a matter of adding keys to a file and making KDE reflect the changes, assuming you're using KDE.
Search the forum. Function keys I think. It was talked about.