Open the full keyboard configuration display. There should be a set of boxes along the bottom of that screen, and the attack key binding is normally found among them — click the relevant box and assign the key again.