For many things, F4 repeats the last thing you did, whether it's put a border on a cell, change its colour, insert a row, right-align etc.
It's a bit hit and miss—it doesn't, for example, repeat data entry. But it's often useful and easier to access than the corresponding buttons would be.