Allow key ids in keyboard.xml to be in hex

This addresses the problem described in https://github.com/xbmc/xbmc/pull/2141

Keypress logging now prefixes hex values with 0x, and the key ids read from keyboard.xml can be in any base.