Set random input to use up to KEY_MAX