Code: Select all
InstallEventHandler({
OnKeyDown = Function(event)
DebugPrint(event.key)
If event.key = "TAB" Or event.key = "\t" THEN DebugPrint("Tab pressed")
EndFunction})
And second, several of they keys, when Debugprinted, will not show anything, but instead print empty line to Console.
As example, pressing RETURN results in empty line, and so does pressing TAB.
How can I print out some way to see what key was pressed in case of these special keys that normally print nothing, and therefore this way be able to use this info to use in IF condition as in " IF (specialkey pressed) THEN something ".