Fixed when key pressed hat
Fixed costumeIndex/backgroundIndex