I'm trying to write a Swift program which accepts input from the keyboard --- specifically, I want the computer to act as soon as a single key is pressed. So the user doesn't have to press Enter after the keypress.
How can I do this?
I'm trying to write a Swift program which accepts input from the keyboard --- specifically, I want the computer to act as soon as a single key is pressed. So the user doesn't have to press Enter after the keypress.
How can I do this?