Added key detection and Entry widget