Category: Snippets

anyKeyPressed1 3

Checking if any key is pressed

Recently I had needed a way to determine whether any key was pressed on the keyboard. This was because any key could potentially be used as an event trigger, and I didn’t want to assume anything about...