MouseCursor in Keydown?

I am missing something. When the cursor is on a Listbox I would like the cursor to change when pressing the option key.
MouseCursor in Keydown does not work?

you probably dont get a keydown event for pressing just the option key

the option key is a “modifier” key, and as such doesn’t fire an event (same for Control, Shift and Alt)

You can detect the Option key press with the Keyboard class.

http://documentation.xojo.com/api/hardware/keyboard.html#keyboard-optionkey

You can use a multiple timer with a period of 200 ms or so, with that kind of code in the Action event handler (inspired from the example in the LR)

If Keyboard.OptionKey Then // handle the keyboard event here.... MsgBox("keyboard event detected...") End If

Thanks all for the quick response! Will look into it.