Use integer key values in the code when checking the current icon mode (previously floats were used)