A visible place to act
Keyboard focus identifies the element ready to receive a keyboard action. It might be a link, a button or another control. Focus differs from a pointer resting over an item: moving a mouse does not necessarily change where a keystroke will go.
A visible focus indicator connects an input to its destination. Without it, someone can move through a page and still be unsure which item is active. A clear outline or similarly distinct treatment helps answer a simple question: where am I now?
A sequence that makes sense
On many web pages, Tab moves forward through interactive elements and Shift plus Tab moves backward. Enter commonly follows a focused link. Other controls use their own established keyboard patterns, so an interface needs more than one universal instruction.
The order should make sense alongside the reading order. A control that appears next to an explanation is easier to interpret when keyboard movement reaches it at the relevant moment. Visual rearrangement can become confusing if it leaves that underlying sequence behind.
Keep the place understandable
When a menu opens, closes or changes what is visible, focus remains part of the interaction. If the active element disappears, a person needs an understandable place to continue. Returning to the control that opened a small disclosure is one familiar approach.
Trying a page with a keyboard can reveal relationships that are easy to miss when pointing directly at a destination. Consider whether every action is reachable, whether the active place is apparent and whether it is possible to leave each control. These questions concern the structure of an interaction, not simply the appearance of its buttons.