Since this is a brand new question, you should have started a new thread.
In any case, you could use an event structure. With the application event 'key down', you get the char of the key pressed. Wired to a case structure, you could set the Boolean and whatever other code you need to do. You also have the Input Device functionson the connectivity palette. With the Acquire Input Data function, you can read the keyboard.