The Hardware library was updated with a small update.
You can now use a custom set of values as the hardware keys values.
See the Kiosk example:
http://www.basic4ppc.com/forum/code-samples-tips/500-creating-kiosk-applications.html for an example of using it.