This tutorial covers how to have your game respond to keyboard and mouse events.
You will want to download the PacMan images for use in this tutorial.
Here is the GitHub solution to the tutorial:
https://github.com/AldworthClass/Monogame-Keyboard-Input
Images for tutorial: