Fix build warnings
Return the result from setKeyBits()