I was working on a project, and by pressing a few shortcuts, I noticed the status bar of Visual Studio 2010:

Try a few shortcuts to notice all the VS behavior, and then ... how could I achieve this effect at the same performance level? Thanks in advance!
PS I have the following block of code, taken from Stack Overlow, which does something like this, but not the same level of performance. My code works for CTRL + K , P.
protected override bool ProcessCmdKey( ref Message msg, Keys keyData ) { if (prefixSeen) { if (keyData == ( Keys.Control | Keys.P)) { MessageBox.Show( "Got it!" ); keyComb.Text = "Ready"; } prefixSeen = false; return true; } if (keyData == ( Keys.Control | Keys.K)) { prefixSeen = true; keyComb.Text = "CTRL + K was pressed. Waiting for a second chord of keys..."; return true; } return base.ProcessCmdKey( ref msg, keyData ); }
But after pressing CTRL + K, the keyComb label keyComb not take the value "CTRL + K was pressed. Waiting for a second key chord ..."
Code taken from: How to get a key combination in C #
source share