numpad
The numpad module allows you to execute functions on a key press or release.
Methods
numpad.Deactivate( Player ply, number key, boolean isButton )
Deactivates numpad key owned by the player
boolean numpad.FromButton()
Returns true during a function added with numpad.Register when the third argument to numpad.Activate is true.
This is caused when a numpad function is triggered by a button SENT being used.
number numpad.OnDown( Player ply, number key, string name, vararg ... )
Calls a function registered with numpad.Register when a player presses specified key.
See for key released action: numpad.OnUp
number numpad.OnUp( Player ply, number key, string name, vararg ... )
Calls a function registered with numpad.Register when a player releases specified key.
See for key pressed action: numpad.OnDown