Keymap.getScrollLockState

bool getScrollLockState()

Returns whether the Scroll Lock modifer is locked.

Returns

true if Scroll Lock is on