dinput: Convert keyboard buffer from internal data format to user data format.