onKeyUp

Getting triggered once when keyboard key is up accepts key combos. (NOTE: triggered once even if the key was held)

Prototypes
onKeyUp(callback) -- callback = function(keys)
Parameters
    • function(keys): callback function
      • keys: string
Usage
onKeyUp(function(keys)
  if keys == "W" then
      print("W is up")
  elseif keys == "Ctrl+W" then
      print("Ctrl+W is up!")
  elseif keys == "Alt+W" then
      print("Alt+W is up!")
  end
end)