You may already know this, but when escape is pressed, readkey() does not return. I understand why this is (some other keys are escape sequences), but there must be a way to handle this, since many programs seem to be able to do it.
Edit: Additionally, it looks like Windows doesn't use ANSI escape codes, so readkey might not work with non-ascii keys on Windows. I have not tested that.
You may already know this, but when escape is pressed, readkey() does not return. I understand why this is (some other keys are escape sequences), but there must be a way to handle this, since many programs seem to be able to do it.
Edit: Additionally, it looks like Windows doesn't use ANSI escape codes, so readkey might not work with non-ascii keys on Windows. I have not tested that.