Adding Pause/Unpause ability
Simplifying the keyboard lock element