title: Wait for key press but allow figure manipulation
body: <p>I had a search around and this seems to not be a well answered question that would come up a lot. Say you have the situation where you want to plot a figure, examine it and then press a keystroke to continue to the next figure. Usually for this Matlab would suggest <code>waitforbuttonpress</code>.</p>
  
  <p>Here is a simple example if you want to test:</p>
  
  <pre><code>for i = 1:20
      data = rand(100, 3);
      plot3(data(:, 1), data(:, 2), data(:, 3), '.')
      waitforbuttonpress
  end
  </code></pre>
  
  <p><strong>How can I wait for a keypress but still allow figure manipulation (ie. rotation, zooming etc)?</strong></p>