'Global' must be followed by '.' and an identifier
Thekeyword appears in a context other than accessing a namespace.
The purpose of Global is to allow your code to access a root-level namespace from inside a namespace structure that has blocked the root-level namespace.
Error ID: BC36000
To correct this error
If you want to access a root-level namespace, specify it following the Global keyword and a period (.).
Dim keyInfo As Global.System.ConsoleKeyInfo
If you do not want to access a root-level namespace, remove the Global keyword.