For thread safety, this property is not safe to read in an unsynchronized thread.
This function returns 'Enum/UserInputType` associated with the user’s most recent input.
For example, if the user’s previous input had been pressing the spacebar, the
Enum/UserInputType returned would be ‘Keyboard’.
UserInputService/LastInputTypeChanged event can be used to track when the last
Enum/UserInputType used by the user changes.
UserInputService is client-side only, this function can only be used in a
This example gets the
Enum/UserInputType|last input type and indicates if it was keyboard input.