How can I show typing keyboard in record screen

When I record the screen on a Mac, how can I show keyboard typing in the same image (as shown below)? Is there particular screen recording software or settings that will do this?