Mod:Creation Kit/RegisterForKey - ScriptObject

F4SE Member of: Mod:Creation Kit/ScriptObject Script

Registers the given Scan Code for OnKeyDown and OnKeyUp events.

Syntax
Function RegisterForKey(int key) Native

Parameters

 * keyCode: The Scan Code of the key to listen for.

Return Value
None

Examples
RegisterForKey(160) ; left shift