closes issue #11, inkey() may be interrupted