Using lower sensitivity allows for the precision tracking required for a "lock" effect.
Use the "Greet" animation. When your hand touches your head, pull out an item (like a gun) and put it away immediately while holding S and your macro key to gain massive speed.
Popular choices include TGM Macro or Razer Synapse (set to 0.01s delays).