KEY_ESCAPE not exiting?

BlitzMax Forums/BlitzMax Programming/KEY_ESCAPE not exiting?

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

What if I wanted to use a key modifier (like CTRL or ALT (MODIFIER_CONTROL = ctrl)), if you change the end of the loop to:
Until GetAsyncKeyState(KEY_ESCAPE) And GetAsyncKeyState(MODIFIER_CONTROL)


it wont leave the loop and you have to end it through the debugger.

{EDIT}
Since we're all talking about keys, in BRL.KeyCodes why are the following keys:
Rem
Const KEY_PAUSE=19
Const KEY_CAPSLOCK=20
Const KEY_HELP=47
Const KEY_NUMSLASH=108
Const KEY_START=93
Const KEY_NUMLOCK=144
Const KEY_SCROLL=145
Const KEY_BROWSER_BACK=166
Const KEY_BROWSER_FORWARD=167
Const KEY_BROWSER_REFRESH=168
Const KEY_BROWSER_STOP=169
Const KEY_BROWSER_SEARCH=170
Const KEY_BROWSER_FAVORITES=171
Const KEY_BROWSER_HOME=172
Const KEY_VOLUME_MUTE=173
Const KEY_VOLUME_DOWN=174
Const KEY_VOLUME_UP=175
Const KEY_MEDIA_NEXT_TRACK=176
Const KEY_MEDIA_PREV_TRACK=177
Const KEY_MEDIA_STOP=178
Const KEY_MEDIA_PLAY_PAUSE=179
Const KEY_LAUNCH_MAIL=180
Const KEY_LAUNCH_MEDIA_SELECT=181
Const KEY_LAUNCH_APP1=182
Const KEY_LAUNCH_APP2=183
End Rem


commented out?

NOTE: Their all sitting at the bottom of the source code.