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?
You could try showing the on-screen keyboard:
This is obviously a very different aesthetic than shown the OP's screenshot, but if it meets your needs, here's how you do it:
I’m recording lots of tutorial videos / screencasts for my YouTube channel and was very unhappy with existing solutions for displaying keystrokes on macOS. So I’ve made my own keystroke app:
Video: https://youtu.be/3koqaw99uKA (30 seconds)
I believe this is a part of Screenflow, which costs $99, but does have a trial available.
OS X does have a limited ability to do this, but it only shows modifier keys, like Shift, Ctrl, Command, etc. If you're interested in that, it's in System Preferences > Universal Access, under the Keyboard tab. Turn sticky keys on, and then push "Display pressed keys on screen". I don't think that's what you want, but you can check that out as well.