changed file permissions
added support for threading detection of key press