Fixed bugs in keyboard.xml processing
Added reading profile modes from registry and only using XBMCDirect when necessary