isAnyKeyPressed
A Boolean value that indicates whether the user is pressing any of the keys.
Declaration
var isAnyKeyPressed: Bool { get }Discussion
If true, the user is pressing a key; otherwise, the user isn’t. You can use this property to check whether the user presses any key before getting the state of specific keys.