capture keypress

I have a bit a hard time to use the keystroke function

I want check if a specific key is pressed;
Something like this:


tell current application
		if keystroke "v" is true then
		display dialog "'v' is pressed"
	end if
end tell

But I only got errors till so far.