Sometimes, it is nice to be able to determine whether the modifier keys are being pressed as well. For example, you might want to do something different when the user presses Ctrl-C instead of just C. This is really easy to do, since even these modifier keys are just simply keys to the KeyboardState class. So we could do this with the code below: