KeyDown(1) is the ESC key
KeyDown(2) is the number 1 key
KeyDown(3) is the number 2 key
KeyDown(4) is the number 3 key
etc.
Are you sure you're pressing the correct key?
By the way, adding Flip has nothing to do with KeyDown()
Also by the way, if you just want to wait for a keypress you can just use WaitKey() and forget about the loop bit you have there(unless of course, you want something else to happen inside of the loop).
KeyDown(2) is the number 1 key
KeyDown(3) is the number 2 key
KeyDown(4) is the number 3 key
etc.
Are you sure you're pressing the correct key?
By the way, adding Flip has nothing to do with KeyDown()
Also by the way, if you just want to wait for a keypress you can just use WaitKey() and forget about the loop bit you have there(unless of course, you want something else to happen inside of the loop).