… = Key[…] (gb.ncurses)
Dim anInteger As Integer
anInteger = Key [ Key As String ]
This is similar to the other key classes. It takes a character and returns what would be returned by, e.g.,
Window.WaitKey() if that character key was pressed on the keyboard. As that is just the ASCII code of that character, this is meant to be a cute alternative to
Asc(
Key).
Examples
If Window.WaitKey() = Key["q"] Then
Quit
Endif