Truncate key input to maximum KEYBYTES