KeyDown does not test whether CAPS LOCK or other toggle keys are in a toggled-on state, only whether the user is pressing it.
UnsignedLong by value. The modifier keys and mouse buttons that are pressed. The flags value is the sum of the values for all the pressed keys and buttons
Key and button values are:
l1 ?Left mouse button
l2 ?Right mouse button
l4 ?SHIFT key
l8 CTRL?key
l16 ?Middle mouse button
KeyCodes and ASCII values
KeyDown does not distinguish between uppercase and lowercase letters or other characters and their shifted counterparts. For example, KeyA! refers to the a key梩he user may have typed "A" or "a." Key9! refers to both "9" and "(". Instead, you can test whether a modifier key is also pressed.
KeyDown does not test whether caps lock or other toggle keys are in a toggled-on state, only whether the user is pressing it.
KeyDown only detects ASCII values 65-90 (KeyA! - KeyZ!) and 48-57 (Key0!-Key9!). These ASCII values detect whether the key was pressed, whether or not the user also pressed shift or caps lock. KeyDown does not detect other ASCII values (such as 97-122 for lowercase letters).
KeyCodes and ASCII values
KeyDown does not distinguish between uppercase and lowercase letters or other characters and their shifted counterparts. For example, KeyA! refers to the a key梩he user may have typed "A" or "a." Key9! refers to both "9" and "(". Instead, you can test whether a modifier key is also pressed.
KeyDown does not test whether caps lock or other toggle keys are in a toggled-on state, only whether the user is pressing it.
KeyDown only detects ASCII values 65-90 (KeyA! - KeyZ!) and 48-57 (Key0!-Key9!). These ASCII values detect whether the key was pressed, whether or not the user also pressed shift or caps lock. KeyDown does not detect other ASCII values (such as 97-122 for lowercase letters).
KeyCodes and ASCII values
KeyDown does not distinguish between uppercase and lowercase letters or other characters and their shifted counterparts. For example, KeyA! refers to the a key梩he user may have typed "A" or "a." Key9! refers to both "9" and "(". Instead, you can test whether a modifier key is also pressed.
KeyDown does not test whether caps lock or other toggle keys are in a toggled-on state, only whether the user is pressing it.
KeyDown only detects ASCII values 65-90 (KeyA! - KeyZ!) and 48-57 (Key0!-Key9!). These ASCII values detect whether the key was pressed, whether or not the user also pressed shift or caps lock. KeyDown does not detect other ASCII values (such as 97-122 for lowercase letters).