Keyboard input works better now

Well, it works well if only one process is accessing it at a time.