How to enable sticky keys on a Mac I've seen this option in one Ubuntu machine and I want to replicate it in my mac:

Hold a Key for 2 second to activate it.

What I have seen is this:
Hold down a Key for 2 second (Shift for example).
Then write something and the written text was as if the Shift key is pressed (and it acts like the Caps Lock pressed).
Then the key is pressed one time to deactivate it.

Is it possible to achieve this on a mac too?
This function is called sticky keys.
You can activate as follows on a Mac:


Open System Preferences.
Type in sticky in the search bar and hit enter.
Tick Enable sticky keys.


OR  


Open System Preferences.
Go to Accessibility.
Go to Keyboard.
Tick Enable sticky keys.