I'm making a console game using C#. I want to my program to execute a block of code any time the user hits the arrow keys. Although that sounds pretty easy, I have no idea how to do that because I'm kind of new to C#.
PS I'm working on VS for mac.
EDIT 1: I want to keep track of user input means that I don't want it to stop other tasks when the program is listening for a user input.