Typing Program

I was wondering if there was a command to detect keys that were pressed. I was going to use this in my typing program but couldn’t find out how.
Please Help Me
-Charlie
:frowning: