experimenting with key detection