Then write a function that running in the background uses inchar and puts the keys read into a buffer. From the buffer you can then read the keys without using a wait and work with them as you like.
Always learn from history, to be sure you make the same mistakes again...