As opposite to usual keyboard keys like alpha, numeric, cursor and FN, there is no way to emulate pressing of these special buttons CapsLock, ScrollLock and NumLock, but you can advise the user to press the corresponding key. You can get the status of these keys by InkeyStatus(STATUS_SCROLL) etc. see the manual section FUN and examples/keyboard.prg