How to test if modifier with keycode is down
<p>I have this code:</p>

<pre>
import java.awt.KeyEventDispatcher;
import java.awt.event.KeyEvent;
import java.awt.Toolkit;

public class KeyListener implements KeyEventDispatcher
{
    @Override
    public boolean dispatchKeyEvent(KeyEvent e)
    {
        if(e.getID() == KeyEvent.KEY_PRESSED)
        {
            if(e.isDown(Toolkit.getDefaultToolkit().getMenuShortcutKeyMask()) && e.getKeyCode() == KeyEvent.VK_V)
            {
                paste();
            }   
        }
    }
}
</pre>

<p>The problem is that <code>e.isDown</code> doesn't exist.
What alterntives can use so that it is <kbd>cmd</kbd>+<kbd>V</kbd> for macs and <kbd>control</kbd>+<kbd>V</kbd> for other OS'es?</p>
