Ok. I have two textboxes and am able to get input from the keyboard using the inkey function. However, I have a slight problem. If the user clicks on a textbox (i have a button that triggers a function), I call the inkey function to start the input. If the user clicks on the textbox again, the program crashes because inkey is already active. So what I tried doing is first deactivating the input and then starting it up again by using the following:

inkey_active = off;

However, I am noticing that this isn't working properly. Did anyone else have this problem? According to the manual and the code I've seen, it should work.