Added maximum code ID for both mouse buttons and keys