title: Delphi: How to use TShiftState type variable?
body: <p>I am developing a Delphi application.<br>
  On TImage.MouseDown event I want to do <code>X</code> task if shift key is pressed, <code>Y</code> task if control key is pressed and <code>Z</code> task if any of them is not pressed. For that I am using <code>TShiftState</code> variable. Now I have a function in which I have to pass this variable as parameter.  </p>
  
  <pre><code>procedure Something(keyState : TShiftState);
  </code></pre>
  
  <p>Now In this function what I should right to check the state of key?  </p>
  
  <pre><code>if KeyState &lt;&gt; ssShift then begin
  
  end;
  </code></pre>
  
  <p>The above code shows error.<br>
  Thanks.</p>